我有这个代码:
$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”。它有什么问题?