I have this code:
$showCountSql = "select cad_count from counteraccountdtl WHERE cad_userid =".$_SESSION['UID']." LIMIT 1";
$showCountresult = mysql_query($showCountSql);
$showCountrow = mysql_fetch_array($showCountresult);
$newCount = $showCountrow[cad_count];
if(is_int($newCount))
echo "Value is Integer";
else
echo "Value not Integer";
I am fetching the value from MySql as "cad_count integer(5)", then I check whether this value is an integer or not and show the "Value not Integer" accordingly. What's wrong in it?