diff --git a/_posts/07-02-01-Interacting-via-Code.md b/_posts/07-02-01-Interacting-via-Code.md index c3364e4..d330223 100644 --- a/_posts/07-02-01-Interacting-via-Code.md +++ b/_posts/07-02-01-Interacting-via-Code.md @@ -26,11 +26,11 @@ Consider the most basic step: {% highlight php %} query('SELECT * FROM table'); } -foreach (getAllFoos() as $row) { +foreach (getAllFoos($db) as $row) { echo "
  • ".$row['field1']." - ".$row['field1']."
  • "; // BAD!! } {% endhighlight %}