lastlog update
Posted: Mon Apr 10, 2006 5:52 pm
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
$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