Hello, I have a variable, i'll say it's named $password. T
Changing $decrypted_password to the correct password also makes the query successful.PHP Code:$encrypted_password = 'long string';
$decrypted_password = decrypt($encrypted_password);
echo $decrypted_password;
// echo outputs the correct password //
$select = mysql_query("SELECT * FROM users WHERE login_id = $id AND password = '$decrypted_password'") or die(mysql_error());
// the select fails //
// when I replace $decrypted_password with the password, it works //
The "decrypt()" function *is* decrypting it, but it won't work in the query?!?



- Monster!

Bookmarks