RE: [PHP] IF command
| From: | Bastien Koert | Date: | Fri, 19 Oct 2007 01:50:24 +0000 |
| Subject: | RE: [PHP] IF command | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-263347@lists.php.net to get a copy of this message | ||
Are you sure that the value is a string? If its numeric, then try the check without the quotes
around the value
bastien> From: ron.php@actsministries.org> To: php-general@lists.php.net> Date: Thu, 18 Oct
bastien> 2007 19:49:55 -0500> Subject: [PHP] IF command> > When $component_reference is 5 or 19 I
bastien> don't want the echo statement to > output to the screen. What is the correct syntax? What I
bastien> have below isn't > working. Thanks for your help. Ron> > if ( ($component_reference !=
bastien> "5") OR ($component_reference != "19") ) {> echo "<li><a
bastien> href=\"index.php?request=" . $request . "\">" . > $component_name .
bastien> "</a>";> }> > -- > PHP General Mailing List (http://www.php.net/)> To
bastien> unsubscribe, visit: http://www.php.net/unsub.php>
_________________________________________________________________
Send a smile, make someone laugh, have some fun! Start now!
http://www.freemessengeremoticons.ca/?icid=EMENCA122