<?php
require( '../connect_db.php' ) ;
$query = $dbc->query('SELECT * FROM customer');
while($row = $query->fetch(PDO::FETCH_ASSOC)) {
echo $row['clientid'].' '.$row['inital'].' '.$row['firstname'].' '.$row['lastname'].' '.$row['mobile'].' '.$row['landline'].' '.$row['email'].' '.$row['address'].' '.$row['postcode'].' '.$row['accessibility'];
}
?>
但给了我一个致命错误:在第 13 行的 list_customer.php 中调用未定义的方法 mysqli_result::fetch()