php3-list | 199901
Date: 01/08/99
- Next message: Colin Viebrock: "RE: [PHP3] PHP3/mySQL at pair.com ok?"
- Previous message: Kenneth Holmlund: "[PHP3] PHP3/mySQL at pair.com ok?"
- In reply to: Tony Bailey: "[PHP3] 'OR' problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
What about:
if ( ($var1=="A") || ($var2 =="B") )
Maybe the || takes more precedence thant he == does.
At 10:01 AM 1/8/99 +0000, you wrote:
>Hi
>
>Is there a problem with using '||' ?
>
>The following doesn't ever want to return true:
>
>$var1="A";
>$var2="X";
>if ($var1=="A" || $var2 =="B")
> ....
>
>Remove the second part of the || and it will work okay. Using PHP
>V3.0.1. Couldn't see a fix in the change log but maybe I missed it.
>
>Keep up the good work. We use PHP on our server to produce a
>Navigation header on various of the sites and for various MySQL
>database tasks..
>
>Tony
>
>--
>Tony (UK) - tony <email protected> [1998 XKR Coupe]
>65 Years of Jaguar Sales Brochures:
>Jag-lovers Brochures @ http://www.jag-lovers.org/brochures/
>Update list @ http://www.jag-lovers.org/brochures/changeindex.html
>Jaguar/Daimler Collectibles Exchange [Admin]
>http://www.jag-lovers.org/HyperNews/get/collectibles.html
>
>
>
>--
>PHP 3 Mailing List http://www.php.net/
>To unsubscribe send an empty message to php3-unsubscribe <email protected>
>To subscribe to the digest list: php3-digest-subscribe <email protected>
>For help: php3-help <email protected> Archive:
http://www.php.net/mailsearch.php3
>List administrator: zeev <email protected>
>
>
-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3 List administrator: zeev <email protected>
- Next message: Colin Viebrock: "RE: [PHP3] PHP3/mySQL at pair.com ok?"
- Previous message: Kenneth Holmlund: "[PHP3] PHP3/mySQL at pair.com ok?"
- In reply to: Tony Bailey: "[PHP3] 'OR' problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

