I get no results returned with this PHP postgreSQL PDO statement. I expected to see several rows. What have I done wrong? How can I retrieve them and put them into an object or array?
$sth = $dbh->prepare('SELECT * FROM address');
$sth->execute();
$result = $sth->fetch(PDO::FETCH_ASSOC);
while($row = $sth->fetch()) {
echo $row['StreetAddress1'] . "\n";
}