steelmanronald06 Posted June 22, 2006 Share Posted June 22, 2006 Yeah, I rarely ever post for help but here I am. I don't mess much with mysql queries, I perfer ADODB, but I have a damn mysql query.[code]$get_forumers_online = mysql_query("SELECT * FROM forum_members WHERE lastLogin < 15 MINUTES");$num_forumers_online = mysql_num_rows($get_forumers_online);echo "Total Online: $num_forumers_online <br />";[/code][!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'MINUTES' at line 1[/quote] Link to comment https://forums.phpfreaks.com/topic/12665-quick-question/ Share on other sites More sharing options...
jvrothjr Posted June 22, 2006 Share Posted June 22, 2006 its picky on single and doule quote[code]$get_forumers_online = mysql_query("SELECT * FROM forum_members WHERE lastLogin < '15 MINUTES'");[/code] Link to comment https://forums.phpfreaks.com/topic/12665-quick-question/#findComment-48573 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.