Re: Match variables. Why doesn't this work!?
| From: | Anders Dannberg | Date: | Fri, 11 Aug 2000 09:34:52 +0000 |
| Subject: | Re: Match variables. Why doesn't this work!? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11293@lists.php.net to get a copy of this message | ||
Never mind. Had to chop() the trailing slashes then it worked...
/Anders
""Anders Dannberg"" <anders.dannberg@edk.se> skrev i meddelandet
news:8n0frf$94b$1@toye.php.net...
> 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
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>