私はこのコードを持っています:
$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";
MySql から値を "cad_count integer(5)" として取得し、この値が整数かどうかを確認し、それに応じて "Value not Integer" を表示します。何が問題なのですか?