Cities with highest populations in the USA!
setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
# do the SQL query to find the data we want
$rows = $db->query("select * from cities where country_code = 'USA' order by population DESC limit 30;");
foreach ($rows as $row) {
?>
The city of = $row["name"] ?> has a
population of = $row["population"] ?> people.