title: Getting error On data Fetch
body: <p>I fetched data and fill the value inside the table with for each loop like:</p>
  
  <pre><code>&lt;?php
  foreach ($data['rows'] as $value) {
  ?&gt;
  &lt;tr&gt;
  &lt;td&gt; &lt;?php echo $value-&gt;rsdntname; ?&gt; &lt;/td&gt;
  &lt;td&gt; &lt;?php echo $value-&gt;rsdntemail;?&gt;&lt;/td&gt;
  &lt;td&gt; &lt;?php echo $value-&gt;rsdntphone; ?&gt; &lt;/td&gt;
  &lt;/tr&gt;
  &lt;?php } ?&gt;
  </code></pre>
  
  <p>but in top section i have three columns which also filled with the fetch data like:</p>
  
  <pre><code>&lt;h3 class="form-section"&gt;Building
   &lt;span class="pull-right" style="font-size:15px;color:#000;"&gt;
   Core &lt;?php $data['rows']-&gt;aptcore; ?&gt;,
  Floor,
  Apartment No
   &lt;/span&gt;
   &lt;/h3&gt; 
  </code></pre>
  
  <p>But it is returning me this error:</p>
  
  <pre><code>A PHP Error was encountered
  Severity: Notice
  Message: Trying to get property of non-object
  Filename: admin/page.php
  Line Number: 52
  </code></pre>
  
  <p>Why I am getting this error .. Provide me the solution Not able to understand.and give me the solution i am not able to understand .It saying tryng to access non object y this error returning with that. what i am doing wrong there 
  working with same page to access data for another level with loop its working outside the loop its not working</p>