Duky,

Have you tried to use:

if ($PASS == $PASSNOG) {
        # do whatever.....
}

If you're taking data from a form, you might want to do a trim to remove any
trailing spaces....

if ($PASS == trim($PASSNOG)) {
        # do whatever
}

There's also...

http://www.php.net/manual/en/function.strcmp.php

HTH,

Chris

-----Original Message-----
From: Duky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 11:34 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] PHP how to compare?


Can somebody tell me what the proper statement is for this? I want two
variables to match with eachother but this doesn't seems to work. Help
please? THNX

   if ($PASS != $PASSNOG) {
      echo "password doesn't match! $back";
      exit;
      }

Duky

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to