title: Trying to get property of non object Simple HTML DOM Parser
body: <p>I am trying to get content of <code>&lt;div class="clearfix" id="searchResultsDiv"&gt;</code> from the link in my code. Whatever I try it shows a Notice as follow </p>
  
  <p><strong>Notice: Trying to get property of non-object in E:\xampp\htdocs\homeshop\index.php on line 20</strong></p>
  
  <pre><code>$link="http://www.homeshop18.com/samsung/categoryid:3027/search:samsung/inStock:true/sort:Popularity/?it_category=MN&amp;it_action=MA-MMAA01&amp;it_label=MN-MMAA01-140906000003-PD-MA-OT-OT-SR_Samsung-0_0-0-MNU101-MA-140730-OT-OT-SR&amp;it_value=0";
  $productPage=file_get_html($link);
  $wholeContent=$productPage-&gt;find('div[id=searchResultsDiv]');
  echo $wholeContent-&gt;plaintext; //line 20
  </code></pre>
  
  <p>There is an element with this id but still i cant do it. Where I am wrong?</p>