$sql = "UPDATE cs SET
Level='$teamlevel'
WHERE userid='$userref'";
if ($result = mysql_query($sql)) {
echo "Userlevel Updated to <b>$teamlevel</b>. ";
}
else {
die(mysql_error());
}
With the above code I'm getting the below error, yet I use this code in other places without error? I've been stumped over it for 2 hours - I cant find any problems 🙁
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 'update='28/07/2004 - 21:33', aupdate='20040728213332', uniqueid
Any help is appreciated, thanks.