我检查了所有内容,但鉴于我使用 PHP 的时间不到 1 个月,我似乎无法深入了解这一点。每当我使用这个 $sql 查询时,它都会给我错误:
//$startrow is variable
$startrow = 0;
$sql = "SELECT `accounts.full_name`, `image.name` FROM `accounts` LEFT JOIN
`image` ON `accounts.person_id` = `image.person_id` WHERE
`accounts.image_set` = '$yes' and `accounts.full_name` LIKE '%$q%'
LIMIT $startrow, 15";