June 21st, 2000, 02:42 AM
How can I verify with PHP a Password that i saved in a MYsql-database with the function PASSWORD() ??
i have saved the password with:
$result = mysql_db_query("databse","insert into table (user,pass) values('user1',password('hello'))");
now i would like to compare the password in the databse with the entered password in a form!
can anybody help me??
June 21st, 2000, 03:58 AM
First check it out wether password is existing in the database or not.After that you can insert the value into the database.
$result = mysql_query("select * from table where pass='$pass'",$con);
// Now save record here
echo "Error!! Hit Back and Change the Passwordn";
"The fear of the LORD is the beginning of knowledge..."