I need to loop through information from a websites source and put it into a table in php
<p>Hello im trying to pull some information from a website to put it into a table, then print it in php </p>

<p>i'm using the DOM parser as it looks like its exactly what i need</p>

<pre><code> &lt;?php

 include 'simple_html_dom.php';

 $html = file_get_html('http://evolve.sg-community.de/index.php?page=plugins');
 $table = $html-&gt;find('#theTable');

 $theData = array();

 foreach($table-&gt;find('tr') as $row) {
    $rowData = array();
    foreach($row-&gt;find('td.text') as $cell) {
       $rowData[] = $cell-&gt;innertext;
    }
    $theData[] = $rowData;
 }
 print_r($theData);
 ?&gt;
</code></pre>

<p>i keep getting</p>

<pre><code> Fatal error: Call to a member function find() on a non-object
</code></pre>

<p>at</p>

<pre><code> foreach($table-&gt;find('tr') as $row) {
</code></pre>
