title: foreach ($rows as $row) cannot add html tags
body: <p>following on from <a href="https://stackoverflow.com/questions/14915573/unable-to-list-all-records-from-the-table-in-php-and-mysqli/14915589#14915589">this question</a> now i need to style the output only to find that php does not like my way of putting tags I also tried to encapsulate it in <code>"</code> and the <code>.</code> or <code>&lt;?php $row['field'] ?&gt;</code> but still did not work.</p>
  
  <pre><code>    &lt;table class="table table-hover"&gt;
  &lt;caption&gt;List All Customers from Customer Table&lt;/caption&gt;
  &lt;thead&gt;
  &lt;tr&gt;
  &lt;th&gt;id&lt;/th&gt;
  &lt;th&gt;Inital&lt;/th&gt;
  &lt;th&gt;First Name&lt;/th&gt;
  &lt;th&gt;Last Name&lt;/th&gt;
  &lt;th&gt;Mobile&lt;/th&gt;
  &lt;th&gt;Landline&lt;/th&gt;
  &lt;th&gt;Email&lt;/th&gt;
  &lt;th&gt;Address&lt;/th&gt;
  &lt;th&gt;Post Code&lt;/th&gt;
  &lt;/tr&gt;
   &lt;/thead&gt;
  &lt;tbody&gt;
  &lt;tr&gt;
  &lt;?php
  foreach ($rows as $row) { 
  ?&gt;
   &lt;td&gt;&lt;?php $row['clientid']; ?&gt;&lt;/td&gt;
   &lt;td&gt;&lt;?php $row['inital']; ?&gt;&lt;/td&gt; 
   &lt;td&gt;&lt;?php $row['firstname']; ?&gt;&lt;/td&gt;
   &lt;td&gt;&lt;?php $row['lastname']; ?&gt;&lt;/td&gt;
   &lt;td&gt;&lt;?php $row['mobile']; ?&gt;&lt;/td&gt;
   &lt;td&gt;&lt;?php $row['landline']; ?&gt;&lt;/td&gt;
   &lt;td&gt;&lt;?php $row['email']; ?&gt;&lt;/td&gt;
   &lt;td&gt;&lt;?php $row['address']; ?&gt;&lt;/td&gt;
   &lt;td&gt;&lt;?php $row['postcode']; ?&gt;&lt;/td&gt;
   &lt;?php } ?&gt;
  &lt;/tr&gt;
  &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>It does not work, shows no result. :( Pulling hairs out! Looked at alternative questions but northing clear enough.</p>