Match variables. Why doesn't this work!?

From: Date: Fri, 11 Aug 2000 09:08:34 +0000
Subject: Match variables. Why doesn't this work!?
Groups: php.general 
Request: Send a blank email to php-general+get-11288@lists.php.net to get a copy of this message
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

« previous php.general (#11288) next »