Please someone help I am very new to PHP, so bear with me.

Link to the site using the code below;

I am basically copying code from a site (http://www.elated.com/articles/cms-in-an-afternoon-php-mysql/), and trying to implement into my own site project.

Here is the problem code....

```
  <ul id="headlines">

<?php foreach ( $results['articles'] as $article ) { ?>

    <li>
      <h2>
        <span class="pubDate"><?php echo date('j F', $article->publicationDate)?></span>
        <a href=".?action=viewArticle&amp;articleId=<?php echo $article->id?>"><?php echo htmlspecialchars( $article->title )?></a>
      </h2>
      <p class="summary"><?php echo htmlspecialchars( $article->summary )?></p>
    </li>

<?php } ?>

  </ul>

  <p><a href="./?action=archive">Article Archive</a></p>

```

Here is my error message:

> 
> Warning: Invalid argument supplied for foreach() in /Applications/XAMPP/xamppfiles/htdocs/news/homepage.php on line 3
> 
> 
>