>> if (!strpos($t_product,$t_p)) {print "checked";}
It could have something to do with the function returning 0 because
it's finding the comma in the 0 index, but it's not really false, it's
still finding the string. I've run into a similar problem before...
Marc
--
PHP General Mailing List (h
Donovan Brooke wrote:
if (!strpos($t_product,$t_p)) {print "checked";}
Nevermind.. bad syntax I guess.. this works:
(strpos($t_product,$t_p) !== false)
Donovan
--
D Brooke
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2 matches
Mail list logo