Forum Moderators: coopster
$num_Pages = 147;
$max_pages_to_show = 20;
if ($max_pages_to_show <= $num_pages) {
print "less than";
} else {
print "more than";
}
I have used is_int to make sure the values are integers, yet this code consistently prints "more than".
What am I doing wrong?
pete_m is correct, variable names are case-sensitive [php.net] and a nice way to catch these simple errors is to turn on error_reporting() [php.net] in your development environment.