Type: Posts; User:
I included <SPAN> tags (with IDs of "text_" + the corresponding <SELECT> value). Those spans are to be filled with the respective content and are invisible by default. When the "Go" submit button is...
Text became too long. Comments - on the next post.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<title>Frequently Asked Questions</title>
Hope this helps:
function jumpIfMaxLength(from, to)
if (from.maxLength == from.value.length)
Thanks a lot. I never met info about this setting before. "Case closed". :)
Eventually I took some time to familiarize myself with table indexing and four CREATE INDEX-es later each of those 60+ seconds queries executes for less than a second...
The only thing that...
It's not in safe-mode (this was the first thing to check, just forgot to mention it).
The thing is, it doesn't take longer than the max exec time:
I need help. At 4:30 AM and after more than 6 hours trying to solve this one I'm just willing to post this thread and go to bed.
I have a PHP function which executes a hundred or so queries. Most...
mysql_fetch_array() returns only one (the next unread) row of the resultset. You'll need to call it for each row in the resultset:
$array = array();
while ($row = mysql_fetch_array($r,...
Seems like the ideal solution for my case.
I didn't imagine the query optimizer is THAT smart. :)
Yup, for those not having Regexofobia... ;) Anyway I'm more than sure it would take more...
I tried to find some info, but no success so far:
1) Does "WHERE 1=1" affects execution performace?
2) If so, can someone propose a better solution for my data reports?
1) I'm not familiar with...
I edited my example (by adding "p.class = p.className", for different browsers use different attribute names). Maybe you're using IE (which uses "class" attribute).
The other possibe reason could...
p = timetablemenuTag.parentNode.parentNode;
p.className = (p.className) ? p.className + ' timetable2' : 'timetable2';
p.class = p.className;
` is the "identifier" quote (for database names, tables, columns, aliases). It is not required unless the name is actually part of the SQL language (e.g. if you have a column named `group`, in most...
10-046 as INT is actually -36 (10 minus 046).
'10-046' as INT is 10 (string to num convertion is made by stopping at the first non-numeric character).
10-046 as CHAR is '-36'.
'10-046' as CHAR is...
Containing dashes means it's a string, not a number, which is no problem to be compared with another string of the same format (e.g. WHERE `string_id` = '10-046'). If you want to treat this as a...
I hope you don't mind if I post a link to your next thread about the code condensing (just to avoid splitting the discussion between both topics):
Display search results if they exist - trying to...
I'm assuming you have a table containing all the "1:00-10" etc. data (in the example I've named this table `mediadb` and the column is `mediadb1`). So, did you mean something like that:
@heldan: I know it isn't much of a consolation but I'm half Polish. :)
order by mediadb1 is null, replace(replace(mediadb1, '-', ''), ':', '')
I didn't understand very well (especially the isset() part), but here's a suggestion:
$pattern = "%search_value%";
$query = <<<EOT
That's because converting to number takes the left-most numeric characters until meeting the first non-numeric character (':' in this case), so actually "mediadb1 + 0" returns values of 1 and 2. Try...
Maybe using stream_context_create() to pass appropriate HTTP headers with file_get_contents() would help.
I'm not good at HTTP headers myself, but I found this add-on for Mozilla Firefox - Live...
And more easier would be to get an already written by somebody else vbscript than installing PHP only for a single task... Of course, if expecting to need additional scripts in future, then yes, PHP...
In your case batch commands wouldn't be powerful enough - you'd need to use another environment - Windows Script Host or another engine (PHP, for example) or even build yourself an .exe program using...
That's why you should test with other browsers ocassionally and not just after your work's completely ready.