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,感觉代码没有问题啊
天使之翼死神之镰
窜天吼猴