我需要在 PHP 中对 SQL 结果进行以下安排:
if (!$result) {
echo "An error occurred.\n";
exit;
}
while($array = pg_fetch_array($result)) {
$list = $array['list'];
}
pg_free_result($result);
但只有 pedro 在数组中返回。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号