谁能告诉我为什么有row[0]
数据,但是row[1]
是(空的)?row[3]
undefined
我的数据库中有 4 行具有bookid = '35'
.
<?php
$mysqli = new mysqli('localhost', 'root', '', 'assignment3');
$query = "select image from images where BookId='35'";
$result = $mysqli->query($query);
$row = $result->fetch_array(MYSQLI_NUM);
echo $row[0];
echo $row[1];
echo $row[2];
echo $row[3];
?>