Cities with highest populations!
setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$country = $db->quote($_GET["country"]);
$query = "SELECT *
FROM cities
WHERE country_code = $country
ORDER BY population DESC
LIMIT 10;";
$rows = $db->query($query);
?>
= $row["name"] ?> |
= $row["population"] ?> |
Hey bra, your query sucks.
Try again, loser.