select-菜鸟求学菜鸟求学菜鸟求学
程序员文章站
2024-04-03 08:55: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()