I am building a website with PHP and MySQL server. I have created a table named log-in with an attribute of username and password. The website has only one administrator. The administrator shall update his password by changing his own password. My SQL code to update is
$query = "UPDATE INTO login (password) values ('$newpassword' )";
mysql_query ($query) or die ("");
This code does not work.....Is this the correct format?
kindly help
$query = "UPDATE INTO login (password) values ('$newpassword' )";
mysql_query ($query) or die ("");
This code does not work.....Is this the correct format?
kindly help
Comment