如果我这样做,这根本不起作用
$query = "SELECT * FROM owners";
$result = mysqli_query($connection, $query);
$data = mysqli_fetch_assoc($result);
while($row = mysqli_fetch_assoc($result)) {
echo $row['uuid'];
}
它只是在屏幕上显示要打印的文本。
答案 0 :(得分:0)
可能只有一行试试这个
$query = "SELECT * FROM owners";
$result = mysqli_query($connection, $query);
while($row = mysqli_fetch_assoc($result)) {
print_r($row);
}