RE: [PHP-DB] Eh

From: Date: Thu, 24 Aug 2000 17:10:47 +0000
Subject: RE: [PHP-DB] Eh
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-2337@lists.php.net to get a copy of this message
Perhaps you should try adding this line before you make your comparison: $cmbProducts = chop($cmbProducts); There may be a newline character at the end of the $cmbProducts variable, which would cause that comparison to be false. The chop function will remove the newline (along with all trailing whitespace as well). Check http://www.php.net/manual/function.chop.php for more info. -----Original Message----- From: Jeroen ten Berge [mailto:j.ten.berge@getexo.nl] Sent: Thursday, August 24, 2000 9:59 AM To: joe@jwebmedia.com Cc: Php-Db Subject: RE: [PHP-DB] Eh Here's a fragment : *************** if ($cmbProducts=="Unknown) { echo "Hit back button, no product selected"; } *************** I don't see a problem in here... But this if is false all the time !?! Regards, Jeroen. -----Original Message----- From: joe@jWebMedia.com [mailto:joe@jWebMedia.com] Sent: Thursday, August 24, 2000 18:14 To: Jeroen ten Berge Cc: Php-Db Subject: Re: [PHP-DB] Eh send more of your code so we can see what's going on. Joe -- 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 -- 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 (#2337) next »