是否可以找到最后一个循环的时间:
$stmt = $connection->stmt_init();
if ($stmt->prepare("SELECT `ProductId` FROM Products"))
{
    $stmt->execute();
    $stmt->bind_result($product_id);
    while($stmt->fetch())
    {
       if ($lastloop)
       {
          echo 'The last id is -> ';
       }
       echo $product_id.'<br />';
    }
}
我想输出类似:
1 
2 
... 
9
最后一个 id 是 -> 10