Hi Gurus
Excuse my ignorance.... I am just learning PHP and I am loving it - I am
just amazed by what it has to offer - it seems endless.
Anyway, I want to ask something very simple. How can I for a value to be a
number between 0 and 99 or 0 and 99999?
I have included a code snippet of where I would like to add it.
TIA
- Nicolaas
// check MIN AND MAX RATE for validity (between 1 and 100,000)
if ($min_rate >0 && $max_rate <99999) {
$sql .= " AND (a.rateMin >=$min_rate AND a.rateMax <=$max_rate) ";
$humanSQL .= "<LI>the tariffs range is between (in New Zealand
dollars): $min_rate and $max_rate </LI>";
}
Excuse my ignorance.... I am just learning PHP and I am loving it - I am
just amazed by what it has to offer - it seems endless.
Anyway, I want to ask something very simple. How can I for a value to be a
number between 0 and 99 or 0 and 99999?
I have included a code snippet of where I would like to add it.
TIA
- Nicolaas
// check MIN AND MAX RATE for validity (between 1 and 100,000)
if ($min_rate >0 && $max_rate <99999) {
$sql .= " AND (a.rateMin >=$min_rate AND a.rateMax <=$max_rate) ";
$humanSQL .= "<LI>the tariffs range is between (in New Zealand
dollars): $min_rate and $max_rate </LI>";
}
Comment