$query = "SELECT * FROM char_stats WHERE id=". $userid; $result = mysql_query($query) or die(mysql_error());
Getting the 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 '' at line 1
Would usually fiddle with this manually, but I dont understand why it can work in one file and then not in another..
This post has been edited by Seanmcn: 18 April 2009 - 11:08 AM

New Topic/Question
Reply




MultiQuote





|