hi,
I have a little problem with the following part of my code.
I use post method to get the password from the form [$first ].
Because there is an encrypted password in mysql database, I check with
$pass = mysql_query("Se lect password('$unen cryptedPass')") ;
while($row = mysql_fetch_arr ay($unencrypted Pass))
{
$encryptedPassw = $row[0];
}
how the encrypted password looks like.
Then I make a simple query:
mysql_query("Se lect login, password from edv_verantwortl iche where
login = '$login' AND password = '$encryptedPass w'") or
die("authorizat ion failed");
But it doesn' t seem to work. I could login every time.
I have checked all values with echo method - they are correct...
Could somebody help me, please.
TIA
I have a little problem with the following part of my code.
I use post method to get the password from the form [$first ].
Because there is an encrypted password in mysql database, I check with
$pass = mysql_query("Se lect password('$unen cryptedPass')") ;
while($row = mysql_fetch_arr ay($unencrypted Pass))
{
$encryptedPassw = $row[0];
}
how the encrypted password looks like.
Then I make a simple query:
mysql_query("Se lect login, password from edv_verantwortl iche where
login = '$login' AND password = '$encryptedPass w'") or
die("authorizat ion failed");
But it doesn' t seem to work. I could login every time.
I have checked all values with echo method - they are correct...
Could somebody help me, please.
TIA
Comment