function fetchOne($sql, $result_type = MYSQLI_ASSOC)
{
$mysqli = mysqli_connect('localhost','root','6', 'imoocshop');
$result = mysqli_query($mysqli,$sql);
var_dump($result);
$row = mysqli_fetch_array($result, $result_type);
return $row;
}结果返回null,感觉代码没有问题啊
添加回答
举报
0/150
提交
取消