• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

PHP - Maths

bozley05

NLC
NLC
Hopefully there is an answer to this... I am in the series of doing some "if" work that involves numbers. I currently have:

if ($value => "100000", =< "300000")

which is totally wrong, but what i really want to do is make it recognise the numbers between 100000 and 300000..

Thanks in advance..
 
if( ($value >= 100000) && ($value <= 300000) ) {
you can also use
if( ($value >= 100000) and ($value <= 300000) ) {
 
Back
Top