woodsonoversoul Posted December 21, 2008 Share Posted December 21, 2008 I've read through the manuals and other forums but still can't find what I'm doing to get the error, all available eyes are appreciated: 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 ''songs' WHERE 'artist' = 'ryan adams'' at line 1 From the line: $result = mysql_query("SELECT * FROM 'songs' WHERE 'artist' = 'ryan adams'"); if(!$result){die(mysql_error());} Link to comment https://forums.phpfreaks.com/topic/137937-error-in-sql-syntax/ Share on other sites More sharing options...
trq Posted December 21, 2008 Share Posted December 21, 2008 $result = mysql_query("SELECT * FROM songs WHERE artist = 'ryan adams'"); Link to comment https://forums.phpfreaks.com/topic/137937-error-in-sql-syntax/#findComment-720942 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.