RE: [PHP] why can't i do this?
| From: | Smith, Benjamin | Date: | Thu, 17 Oct 2002 04:12:20 +0000 |
| Subject: | RE: [PHP] why can't i do this? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-120272@lists.php.net to get a copy of this message | ||
Because the first example is not correct syntax?
I wasn't aware that the first element in a comparison could ever be left out, is it that way in
other languages?
-----Original Message-----
From: Peter Houchin [mailto:php@vfsa.com.au]
Sent: Thursday, 17 October 2002 2:15 PM
To: php_gen
Subject: [PHP] why can't i do this?
howdy
can some one please tell me why i can't do this
elseif ($_POST['cost'] <=49999 && >=20001){...}
but i can do this
elseif ($_POST['cost'] <=49999 && $_POST['cost'] >=20001){...}
Cheers
Peter
"the only dumb question is the one that wasn't asked"
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php