Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Auto reload

  1. #11
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    Going on from Dentafrice, if you'd like this all in php, this solution is bandwidth heavy but better overall:
    PHP Code:
    <?php
    while('1' '1') {
        
    $if_is mysql_num_rows(mysql_query("SELECT bla FROM blabla WHERE blergh='bluh'") or die(mysql_error()));
    if(
    $if_is != '0') {
        echo 
    "<script type=\"text/javascript\">alert('stuff');</script>";
    }
    sleep(5)
    }
    // not tested this code
    ?>
    How could this hapen to meeeeeeeeeeeeeee?lol.

  2. #12
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    How the hell would that be bandwith heavy :\

  3. #13
    Join Date
    Apr 2008
    Location
    England.
    Posts
    1,324
    Tokens
    0

    Latest Awards:

    Default

    He doesn't know what he's talking about Mr.Dentafrice, he thinks a few lines of code is a couple thousand mb's of bandwidth.

  4. #14
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    LOL

    The proper term is resource intensive, not bandwith heavy lmao. And the JS is CS so it doesn't matter.. its a simple query, which takes simple time, and a minimum amount of bandwith

  5. #15
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    Ok, my bad, no need to go crazy, and stop with the 'mr's Gork!
    How could this hapen to meeeeeeeeeeeeeee?lol.

  6. #16
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    No, it just pisses me off when in like 3-4 weeks you go from idiot to "Mr. Genius", which you constantly keep failing at.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •