Hello everyone!
Could somebody please tell me why this code doesn't output anything? I'm
using PHP4 and DB2.
if ($f_password != odbc_result($result, "password")) {
echo "Passwords doesn't match!";
}
($f_password is the value from a form and odbc_result(....) is the value of
the password in the database which i have selected and queried.
And yes, they do contain identical values when i do a "echo" and display
their values.) I've also put the odbc_result($result, "password") in a
string but with no luck.
I've also tried...
if (odbc_result($result, "password") == $f_password) {
echo "Password match!!";
}
Isn't it possible to compare values with database columns like this with
IF-statements in PHP?
Any other ideas on what other expressions/functions i could use to match to
values like in the above examples?
Thanks in advance.
Anders