www.webdeveloper.com

Search:

Type: Posts; User: MGenev

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    1,255

    I included tags (with IDs of "text_" + the...

    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...
  2. Replies
    4
    Views
    1,255

    [EDIT] Text became too long. Comments - on the...

    [EDIT]
    Text became too long. Comments - on the next post.


    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title>Frequently Asked Questions</title>
    ...
  3. Replies
    2
    Views
    1,481

    Hope this helps:

    Hope this helps:


    <html>
    <head>
    <script type="text/javascript">
    function jumpIfMaxLength(from, to)
    {
    if (from.maxLength == from.value.length)
    ...
  4. Thanks a lot. I never met info about this setting...

    Thanks a lot. I never met info about this setting before. "Case closed". :)
  5. Eventually I took some time to familiarize myself...

    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...
  6. It's not in safe-mode (this was the first thing...

    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:


    set_time_limit(300);
    echo...
  7. [RESOLVED] "MySQL server has gone" + "max. exec. time exceeded"

    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...
  8. Thread: Array Problem

    by MGenev
    Replies
    2
    Views
    1,129

    mysql_fetch_array() returns only one (the next...

    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,...
  9. Replies
    6
    Views
    5,229

    Seems like the ideal solution for my case. I...

    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...
  10. Replies
    6
    Views
    5,229

    [RESOLVED] Queries with "WHERE 1=1"

    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...
  11. Replies
    6
    Views
    2,289

    I edited my example (by adding "p.class =...

    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...
  12. Replies
    6
    Views
    2,289

    p = timetablemenuTag.parentNode.parentNode; ...

    p = timetablemenuTag.parentNode.parentNode;
    p.className = (p.className) ? p.className + ' timetable2' : 'timetable2';
    p.class = p.className;
  13. ` is the "identifier" quote (for database names,...

    ` 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...
  14. 10-046 as INT is actually -36 (10 minus 046)....

    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...
  15. Containing dashes means it's a string, not a...

    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...
  16. I hope you don't mind if I post a link to your...

    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...
  17. I'm assuming you have a table containing all the...

    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:



    <?php...
  18. Replies
    47
    Views
    10,988

    Poll: @heldan: I know it isn't much of a consolation...

    @heldan: I know it isn't much of a consolation but I'm half Polish. :)
  19. Replies
    15
    Views
    2,651

    order by mediadb1 is null,...

    order by mediadb1 is null, replace(replace(mediadb1, '-', ''), ':', '')
  20. Replies
    1
    Views
    1,080

    I didn't understand very well (especially the...

    I didn't understand very well (especially the isset() part), but here's a suggestion:



    <?php

    $pattern = "&#37;search_value%";

    $query = <<<EOT
    SELECT
  21. Replies
    15
    Views
    2,651

    That's because converting to number takes the...

    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...
  22. Maybe using stream_context_create()...

    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...
  23. Thread: BAT file

    by MGenev
    Replies
    17
    Views
    3,662

    And more easier would be to get an already...

    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...
  24. Thread: BAT file

    by MGenev
    Replies
    17
    Views
    3,662

    In your case batch commands wouldn't be powerful...

    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...
  25. Replies
    6
    Views
    1,084

    AJAX That's why you should test with other browsers...

    That's why you should test with other browsers ocassionally and not just after your work's completely ready.
Results 1 to 25 of 52
Page 1 of 3 1 2 3
HTML5 Development Center



Recent Articles