between numbers?
Posted: Wed Nov 01, 2006 12:00 pm
Here is the basic code
This works correctly buy what I would like to do is narrow it down though, to where it could detect if the number were between 45 and 50.
In theory this:
But this doesnt work. Anyone have any ideas?
Code: Select all
$number = 46;
if ($number >=45) {echo"greater than 45";}
else {
if ($number < 45) {echo"less than 45";}}In theory this:
Code: Select all
$number = 46;
if ($number >=45, <= 50) {echo"between 45 and 50";}
else {
if ($number < 45) {echo"less than 45";}}