Millar Posted August 18, 2006 Share Posted August 18, 2006 I have this piece of code to see if a user was active in past 15 mins.[code]mysql_query ( "SELECT * FROM reg WHERE lastactive>='" . date ( "U" ) - 900 . "'" );[/code]But this code doesn't work, how could I query using more than? Quote Link to comment Share on other sites More sharing options...
AndyB Posted August 18, 2006 Share Posted August 18, 2006 ... lastactive >= ' .... Quote Link to comment Share on other sites More sharing options...
fenway Posted August 18, 2006 Share Posted August 18, 2006 Or you could use the MySQL NOW() function. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.