ohdang888 Posted January 14, 2008 Share Posted January 14, 2008 whats wrong with this code? $new_games = mysql_query("SELECT game_picture_url, title, FROM game ORDER BY title ") or die(mysql_error()) i am getting this 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 'FROM game ORDER BY title' at line 1 Quote Link to comment Share on other sites More sharing options...
marcus Posted January 14, 2008 Share Posted January 14, 2008 $new_games = mysql_query9"SELECT game_picture_url, title FROM `game` ORDER BY title") or die(mysql_error()); You have an extra comma after title. Quote Link to comment 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.