Jon W
03-03-2009, 03:00 AM
Whats wrong with this query?
mysql_query("INSERT INTO users (`last_ip`) VALUES ('$new_ip') WHERE user_id='".$active['user_id']."' ") or die('Server Error: ' . mysql_error());
I get this syntax error:
Server 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_id='1'' at line 1
mysql_query("INSERT INTO users (`last_ip`) VALUES ('$new_ip') WHERE user_id='".$active['user_id']."' ") or die('Server Error: ' . mysql_error());
I get this syntax error:
Server 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_id='1'' at line 1