Re: why can't i do this?
| From: | Keith Vance | Date: | Thu, 17 Oct 2002 04:11:55 +0000 |
| Subject: | Re: why can't i do this? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120271@lists.php.net to get a copy of this message | ||
Because that's not the way PHP works. You aren't comparing anything on the
second half of the elseif statement.
Keith Vance
Vance Consulting LLC
www.vanceconsulting.net
(206) 355-2399
Try U.M.A. at http://uma.sourceforge.net/
On Thu, 17 Oct 2002, Peter Houchin wrote:
> 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
>
>
>