当前位置:Gxlcms > PHP教程 > select-菜鸟求学菜鸟求学菜鸟求学

select-菜鸟求学菜鸟求学菜鸟求学

时间:2021-07-01 10:21:17 帮助过:22人阅读

selectphperror

$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()

人气教程排行