shane18 Posted February 9, 2010 Share Posted February 9, 2010 $CHANAGE = $DATABASE_LINK->query("SELECT `name` FROM `users` WHERE `last_activity` > TIME()"); How can I make that work without going $TIME = time(); .... Quote Link to comment https://forums.phpfreaks.com/topic/191447-mysql-time/ Share on other sites More sharing options...
PravinS Posted February 9, 2010 Share Posted February 9, 2010 What is data type of "last_activity" field. It it is DATETIME then you can directly compare it with NOW() function in query. Quote Link to comment https://forums.phpfreaks.com/topic/191447-mysql-time/#findComment-1009255 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.