Hi David,
in PHP, you can not access associative arrays with index numbers
(and your mysql row arrays will be of the associative kind).
But Chris posted a kludge recently:
//snip
Just for kicks ... here's something pretty ugly (I'd never use it), but
neat if you're interested (or somehow real
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?
--
PHP General Mailing List (http://www.php.net/
2 matches
Mail list logo