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 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 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... 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
Archived
This topic is now archived and is closed to further replies.