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:[EMAIL PROTECTED]] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php