行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