Ben Cairns wrote:

> <?
> if ($answer == 0) { ?> 0 <? }; ?>
> if ($answer >0 but <=20) { ?> more than 0 but less than or equal to 20 <? };
> ?>

You should try:

if ($answer > 0 && $answer <= 20) {
    dosomething;
}

Look up at Logical Operators reference in the manual.

Bye
--
__________________________________________________________________________________________

==========================================================================================

Jan Walter, called John
LERACH, s.r.o.
phone nr. work: +420-2-78 22 619, home: +420-2-35 35 27 61
on emergency call cell phone: +420-602-385 760
work e-mail mailto:[EMAIL PROTECTED]
private e-mail mailto:[EMAIL PROTECTED]
ICQ#: 28353428
__________________________________________________________________________________________

==========================================================================================




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to