I'm a littler bit stuck trying to do this...
I made a table of 4 columns... one for the user name, the other for the password and the two others for the ip and the date... what I'm trying to do is enter the Ip and the date based on the user..... I'm using this:
mysql_query("INSERT INTO login WHERE name='$name' (date, ip) VALUES('$date_time', '$ip')") or die(mysql_error());
but I'm having this 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 name='example')(date, ip) VALUES('Wednesday May 18, 2005.....