Cities with highest populations in !
setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$country = $db->quote($_GET["country"]);
$rows = $db->query("SELECT name, population
FROM cities
WHERE country_code = $country
ORDER BY population DESC
LIMIT 10");
foreach($rows as $row) {
?>
- =$row["name"] ?> - =$row["population"] ?>