Re: & and && and weird results

From: Date: Wed, 01 Apr 2009 21:43:11 +0000
Subject: Re: & and && and weird results
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-290945@lists.php.net to get a copy of this message
Thanks for that. I understand. Somehow, I had tried OR at one point but I got one of those orange boxes probably for some other error and in the confusion of my neurons I overlooked it. However, I am puzzled that using & (not &&) did give a lot of results, almost the whole db which is thankfully not very big for testing purposes.
&& means "and". "&" is a bitwise operation. These pages explain it much better than I can. http://dev.mysql.com/doc/refman/5.0/en/bit-functions.html http://au.php.net/manual/en/language.operators.bitwise.php -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#290945) next »