I'm confused why my php verification isn't working.
I am checking the field type of a mysql table, and checking that the value entered in a form matches.
if($comptype=="int" && !is_int($val)){
$ekey[]=$key;
$error.="<br><b>$key</b> ($val) must be an integer\r\n";
}
The above is returning the following for the two integer fields in my database:
field_a (5) must be an integer
field_b (12) must be an integer
how do I get this seemingly simple check to work?