Re: question
| From: | skitum | Date: | Wed, 04 Sep 2002 14:59:52 +0000 |
| Subject: | Re: question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115182@lists.php.net to get a copy of this message | ||
I'm not sure what do you want to do, but maybe this can help you:
if($a == $value && $b == $value)
{
//do something
}
elseif($a == $value && $b != $value)
{
//...
}
elseif($a != $value && $b == $value)
{
//...
}
else
{
//...
}
I hope this help
Peace & Love
skitum
----- Original Message -----
From: <dorevh@tiscali.nl>
To: <php-general@lists.php.net>
Sent: Wednesday, September 04, 2002 4:26 PM
Subject: [PHP] question
> I have a php question.
>
> I would like to enter a "while" loop, but:
> I want it to be like this:
>
> when $a has a value, while $a...
> when $b has a value, while $b... (same statements as with $a)
> when $a has a value, and $b has a value, while $a and $b
>
> this is based on a search system in which the user can enter a, b or a and
> b.
>
> Can you help me with my problem, or help me find someone who can?!
>
> Thanks.
>
> Dore van Hoorn.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>