prepare("SELECT id, name, maps_link FROM Restaurant"); $stmt->execute(); $restaurants = $stmt->fetchAll(PDO::FETCH_ASSOC); if ($restaurants) { $output = ""; echo $output; } else { echo "

No restaurants available.

"; } ?>