I'm having trouble here. I am storing passwords from a form. They are scrambled. I am unable to come up with the right text to check the password when somebody attempts to login. Through this forum I found PASSWORD() function, but while trying to run it I got an error that it was an undefined function. Another post told me to change that to md5(), which gives an error that the passwords do not match.
Here is my latest version of an attempt.
First page (Signup, data goes into mysql):
$sql = "insert into member set loginName ='$loginName', createDate = '$createDate', password = "md5($password)", email='$email'";
Second page (verification):
$checkp = "SELECT password from $table WHERE loginName = \"$loginName\"" ;
$result2 = mysql_query($checkp, $conn) or die(mysql_error());
$pass = mysql_result($result2, 0);
if ($pass != md5('$password')){
Thanks for helping a rookie.,