I am trying to write a script that will update a users databse with the last date they logged in. This is the query i tried
$query = "UPDATE user SET lastlog=CURDATE() WHERE email='$e' AND password=SHA('$p')";
Is there anything that you guys see wrong with it.
Can you suggest how to do it?
Thanks in Advance
lastlog update
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
have you tried seeing what mysql_error() says?