mysql string comparison not working

From: Date: Tue, 03 Sep 2002 06:33:07 +0000
Subject: mysql string comparison not working
Groups: php.general 
Request: Send a blank email to php-general+get-114985@lists.php.net to get a copy of this message
if I set test = "Y"; then if ($test == "Y") {echo ("it matches");} seems to work while if ($row[24] == "Y") {echo ("it matches");} does not. The row[24] mysql variable is char type and 1 char long. any idea why it is not doing the comparison?

« previous php.general (#114985) next »