我想知道$stmt->free_result()
在存储结果后是否必须调用 for $stmt->store_result()
?我可以直接打电话$stmt->close()
到最后吗?
我问它的原因是因为当我打电话时$stmt->num_rows
我必须调用$stmt->store_result()
这里所说的:http ://www.php.net/manual/en/mysqli-stmt.num-rows.php ,但他们不要$stmt->free_result()
在他们的例子中调用。但是,$stmt->store_result()
他们这样做:http ://www.php.net/manual/en/mysqli-stmt.store-result.php 。