Im getting an error with this line of code and im not SQL savvy by any means:
$db->query("UPDATE users SET money=money+{$np['hPRICE']},maxwill=100 WHERE userid=$userid",$c);
and here is the error im getting:
QUERY 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 ' maxwill=100 WHERE userid=1' at line 1
Query was UPDATE users SET money=money+,maxwill=100 WHERE userid=1