什么函数可以在mysqli get_result对象上调用?


PHP What functions can be called on mysqli get_result objects?

mysqli_stmt_get_result()返回的对象上可以运行什么样的函数

//after running a query
$result = $stmt->get_result();
//I know this one
while($row = mysqli_fetch_array($result){}
//However this didnt work on this query for me.
SELECT MAX id FROM users;

那么从$result中获取数据的其他方法是什么?在什么情况下使用它们?

是不是因为这个查询应该是:

select max(id) from users

从结果对象中检索数据有许多方法:http://de3.php.net/manual/en/class.mysqli-result.php