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? Link to comment https://forums.phpfreaks.com/topic/17940-using-more-than-with-where/ Share on other sites More sharing options...
AndyB Posted August 18, 2006 Share Posted August 18, 2006 ... lastactive >= ' .... Link to comment https://forums.phpfreaks.com/topic/17940-using-more-than-with-where/#findComment-76724 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. Link to comment https://forums.phpfreaks.com/topic/17940-using-more-than-with-where/#findComment-76826 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.