[PHP] Re: mysql string comparison not working

2002-09-03 Thread lallous
try to: var_dump($row[24]) and see what happens? it might be that the "Y" is stored as lowercase in MySql's table. Elias "David Banning" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > if I set test = "Y"; > then > > if ($test == "Y") {echo ("it matches");} > >

[PHP] Re: mysql string comparison not working

2002-09-03 Thread Henry
Have you tried single quotes ' '? "David Banning" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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. > Th