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: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to