RE: [PHP-DB] PHP how to compare?

From: Date: Wed, 14 Mar 2001 19:39:04 +0000
Subject: RE: [PHP-DB] PHP how to compare?
Groups: php.db 
Request: Send a blank email to php-db+get-7474@lists.php.net to get a copy of this message
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:duky@cable.a2000.nl] Sent: Wednesday, March 14, 2001 11:34 AM To: php-db@lists.php.net 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: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#7474) next »