Can someone explain to me what EXACTLY is going on in this code:
$newpass = md5(md5("xlg3m3qp".$pass1."s29dme3lw"));
I am trying to write a script that will allow me to change the password in my database. However, when I run the mysql code:
$sql = mysql_query("UPDATE members SET password='$newpass' WHERE id='$id' AND hash='$hashpass')") or die("mysql error");
the script runs fine, and the password is updated, however, only one problem... The new password that is generated, is the same as the original password! The original password is initially set using a similar script:
$db_password = md5(md5("xlg3m3qp".$pass1."s29dme3lw"));
$sql = mysql_query("INSERT INTO members (username, password)
VALUES('$username', '$db_password')") or die (mysql_error());