Hi,
Can someone tell me if i can use the below query.
When i click submit button SQL says:
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 = 'genieuk'' at line 1
I am using this query:
$loginid = mysql_query("INSERT INTO userinformation (login_id) VALUES ('".$randomkey."') WHERE `username` = '".$username."'") or die(mysql_error());
Thanks
Mat