title: PHP syntax error, unexpected 'endforeach' (T_ENDFOREACH)
body: <p>What's wrong with my code</p>
  
  <pre><code> &lt;?php foreach($query-&gt;result() AS $row);?&gt;
        &lt;tr&gt;
           &lt;td&gt;&lt;?php echo $row-&gt;Qid?&gt; &lt;/td&gt;
           &lt;td&gt;&lt;?php echo $row-&gt;title?&gt; &lt;/td&gt;
           &lt;td&gt;&lt;?php echo $row-&gt;date?&gt; &lt;/td&gt;
        &lt;/tr&gt;
   &lt;?php endforeach;  ?&gt;
  </code></pre>
  
  <p>Error message : <strong>syntax error, unexpected 'endforeach' (T_ENDFOREACH)</strong>
  using Codeigniter</p>