行num是真實的,但在執行循環只有一次,我不知道什麼是錯的! $ conn是行數。NUM行是3,但while循環只執行一次
if ($stmt = $con->prepare("select COUNT(*) AS countt bla bla"))
{
$stmt->bind_param("...");
$stmt->execute();
$stmt->bind_result($countt);
while($stmt->fetch())
{
echo "============".$countt."============"; //
}
$stmt->close();
}
the result is:
============ 3 ============
i expect:
============ 3 ============
============ 3 ============
============ 3 ============
什麼語言? – Shiva
溼婆伊拉尼哈蒂吞沒,卡哈納加德加納 – behruz
什麼??????????? – Shiva