Thanks You guys, that was what i was looking 4
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com
"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."
--
PHP Windows Mailing List (http:/
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
--
_
At 14:46 25.01.2001, Ben Cairns said:
[snip]
>if ($answer == 0) { ?> 0
>if ($answer >0 but <=20) { ?> more than 0 but less than or equal to 20 0 and $answer <= 20)
print "more than 0 but less than or equal to 20";
else
print "below 0 or above 20";
It's not so much "but" as "and"...
so
if ($answer > 0 && $answer <= 20) { }
See the manual on logical operators
-
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
The be