誰かが私のコードのばかげた明らかなエラーであると確信していることを指摘できますか? while ループの文字列 "string" は正しい回数を表示していますが、行 [0] には結果が表示されていません。
if (!isset($_GET['city']) & !isset($_GET['county'])) {
$getResults = "SELECT DISTINCT region FROM `locations` WHERE country = 'England'";
echo "No region or county set";
if ($result = $mysqli->query($getResults)) {
echo "Found results";
while ($row = $result->fetch_assoc()) {
echo "string";
echo $row[0];
}
}
}