SELECT `miasto` FROM `gabinet_pacjenci` LIMIT 0 , 30
$sql3 = "SELECT miasto FROM gabinet_pacjenci GROUP BY miasto ORDER BY COUNT(miasto) DESC LIMIT 0,10"; $result3 = $conn->query($sql3); if ($result3->num_rows > 0) { while($row = $result->fetch_assoc()) { $miasto = $row['miasto']; } } else { }