my web site

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Cool.

    Btw, something like...

    PHP Code:
    mysql_query('DELETE FROM `online` WHERE `time` > ' . (time() - 600) . ''); 
    <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

    Comment


      #17
      Delete
      PHP Code:
      $_SESSION=array(); 
      Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com

      Comment


        #18
        Originally posted by arnage View Post
        Cool.

        Btw, something like...

        PHP Code:
        mysql_query('DELETE FROM `online` WHERE `time` > ' . (time() - 600) ); 
        ...........
        Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com

        Comment


          #19
          Don't do that, write complete syntax.
          <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

          Comment


            #20
            But it's less typing lol
            Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com

            Comment


              #21
              True, true...
              <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

              Comment


                #22
                If you move from the default MYSQL driver to MySQLI or PDO and use prepared statements you can re-use many queries easily and improve performance too. :P
                Last edited by kevk3v; 09.02.15, 17:45.
                Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com

                Comment

                Working...
                X