eregi() not doing what I think it'a meant to...
| From: | Daniel Vesma | Date: | Mon, 03 Jul 2000 17:50:34 +0000 |
| Subject: | eregi() not doing what I think it'a meant to... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-4541@lists.php.net to get a copy of this message | ||
I couldn't find an FAQ, so please excuse me if this has been asked before...
Correct me if I'm wrong, but if $row->NAME is "Neil", and $type is "ei"
then
the following code...
if($type == "" OR eregi($row->NAME, $type))
{
print "Yup";
}
else {
print "Nope";
}
should print "Yup" to the screen. It doesn't. If $type is "Neil", then it
does.
Am I wrong on this? Am I using the wrong syntax?
Thanks for any help.
Daniel Vesma - IT and Webdesign Manager
The Web Tree: http://www.thewebtree.com