欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

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

程序员文章站 2022-06-08 10:51:46
...
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()
相关标签: select php error