Ok, I admit I'm still new to PHP but I thought I understood comparison operators. The book I bought "PhP and MySQL Web Development" says the < means "less than" and the <= means less than or equal to. But I have a bit of code that used the < but it seems to be acting like <= In other words, of the two variables are equal, it still evaluates as if one is thess than the other. Here's my code in question.
if($myspeed<$minspeed)
{
$myspeed=$minspeed;
echo "<IMG src=\"vrally/granny.jpg\"><FONT SIZE=\"3\" COLOR=\"GREEN\" FACE=\"Verdana\">Sorry Granny, your speed was below minimum allowed for this route <br>";
echo "We are setting your speed to the minimum of ".$myspeed." MPH for this route"."</font>"."<p>";
}
When $myspeed and $minspeed are both equal, it still evaluates the code inside the if statement and I am pulling my hair out trying to figure out why. Any ideas?
Thanks,
Basil