$mysqli=new mysqli("localhost","root","root","t");
$sql2="select name from table1;";
$sql2.="select id from table1;";
if($res=$mysqli->multi_query($sql2))
{
do{
$result=$mysqli->store_result();
while($row=$mysqli->fetch_row())
{
foreach($row as $k=>$v)
{
echo "----$v";
}
echo "";
}
echo "";
$result->free();s
}while($mysqli->next_result());
$mysqli->close();
這個錯誤怎麼解決?Fatal error: Call to undefined method mysqli::fetch_row()
$mysqli下面沒有fetch_row()這個方法吧?
是不是應該用
$row = $result->fetch_row()