diff --git a/_posts/07-04-01-Interacting-via-Code.md b/_posts/07-04-01-Interacting-via-Code.md index a5e3b77..25fe068 100644 --- a/_posts/07-04-01-Interacting-via-Code.md +++ b/_posts/07-04-01-Interacting-via-Code.md @@ -33,7 +33,8 @@ function getAllFoos($db) { return $db->query('SELECT * FROM table'); } -foreach (getAllFoos($db) as $row) { +$results = getAllFoos($db); +foreach ($resultss as $row) { echo "