Jump to content

update adds new row


Recommended Posts

Hiya,My login php script is meant to check the users login and then update the timestamp field however its creating a new row i just wondering if i have the field wrong. The field has had the value of timestamp although i have now changed that to just int.When i do my query it writes new row just without anything in it. Could someone please help. Thanks

 $logtime ="UPDATE alc_user"  ." SET loglast = NOW()"  ." WHERE 'username' = '{$_POST["username"]}'";  

Edited by garyblack
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...