Telefonverzeichnis
query('SELECT customerid, firstname, lastname, phone FROM customers');
echo "\n";
while ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) {
echo "\t\n";
echo "\t\t".$row['customerid']." | \n";
echo "\t\t".$row['firstname']." | \n";
echo "\t\t".$row['lastname']." | \n";
echo "\t\t".$row['phone']." | \n";
echo "\t
\n";
}
echo "
\n";
?>