title: PHP - Simple HTML DOM Parser - Getting FATAL ERROR when html is OK
body: <p>I am trying to parse a table and output the a plaintext in another table. I have gotten this far:</p>
  
  <pre><code>&lt;?php 
      if (url_exists($url))
      {
          $html = file_get_html($url);
      }
      else 
      {
          echo "URL doesn't exist.";
      }
  
      if ($html &amp;&amp; is_object($html) &amp;&amp; isset($html-&gt;nodes))
      {
          // Everything checks out
          $table = $html-&gt;find('table[border]');
          if (!empty($table))
          {
          $row = $table-&gt;find('tr');
          }
      }
      else 
      {
          echo "Fetched page is not ok.";
      }
  ?&gt;
  </code></pre>
  
  <p>This returns an error:
  Fatal error: <code>Call to a member function find() on a non-object in /var/www/html/jsudimak/mailman/webdev-test1.php on line 78</code></p>
  
  <p>Line 78 is this one: <code>$row = $table-&gt;find('tr');</code></p>
  
  <p>This means that :</p>
  
  <ul>
  <li>the html is valid</li>
  <li>the table I am trying to parse is also valid</li>
  </ul>
  
  <p>Therefore, I am bewildered by the fact that the <code>find()</code> method is still returning this error.</p>
  
  <p>I have looked into the cause of this error extensively for the past few days and I have yet to find a solution. I have also tried some other parsing tools no still no luck. Help me with this fellow debuggers!!!!</p>
  
  <p>By the way, I am using the Simple HTML Dom Parser to parse the table.</p>