Hello,
Can anyone help me with this error?
Thank you.
mysql_query("INSERT INTO session VALUES('$user', '$ctime', '$ip', '$guest') ON duplicate KEY UPDATE time='$ctime' WHERE user='$user'") or die(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 user='48'' at line 1