dezkit Posted June 10, 2010 Share Posted June 10, 2010 mysql_query("UPDATE members SET credits- WHERE username='".$_SESSION["username"]."'") throws out the error 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 '- WHERE username='username'' at line 1 I'm trying to decrement the int, but it wont work, thank you . Link to comment https://forums.phpfreaks.com/topic/204354-mysql-error/ Share on other sites More sharing options...
sspoke Posted June 10, 2010 Share Posted June 10, 2010 SET credits=credits-1 Link to comment https://forums.phpfreaks.com/topic/204354-mysql-error/#findComment-1070198 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.