scarhand Posted March 20, 2009 Share Posted March 20, 2009 mysql_result(mysql_query("select count(*) from peers where hash='$hash' and left='0'"), 0) or die(mysql_error()); 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 '='0'' at line 1 Quote Link to comment https://forums.phpfreaks.com/topic/150380-solved-simple-select-is-not-working/ Share on other sites More sharing options...
Mchl Posted March 20, 2009 Share Posted March 20, 2009 http://dev.mysql.com/doc/refman/5.1/en/reserved-words.html Quote Link to comment https://forums.phpfreaks.com/topic/150380-solved-simple-select-is-not-working/#findComment-789741 Share on other sites More sharing options...
scarhand Posted March 20, 2009 Author Share Posted March 20, 2009 doh... Quote Link to comment https://forums.phpfreaks.com/topic/150380-solved-simple-select-is-not-working/#findComment-789782 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.