title: If statement inside foreach loop to format specific column
body: <p>This is my current code to fetch the data:</p>
  
  <pre><code>&lt;thead&gt;
  &lt;?php
  foreach ($fields as $val) {
  $fieldname=$val-&gt;name;
  echo "&lt;th&gt;".$fieldname."&lt;/th&gt;";
  }
  ?&gt;
  &lt;/thead&gt;
  
  &lt;tbody&gt;
  &lt;tr&gt;
  &lt;?php
  foreach ($rows as $data){       
  echo "&lt;td&gt;".$data."&lt;/td&gt;";
  ?&gt;
  &lt;/tr&gt;
  &lt;/tbody&gt;
  </code></pre>
  
  <p>Some of the fields are Id, Title, Amount, and so on. I would like to format the specific column 'Title' so it will become a link.
  Thank you very much.</p>
  
  <p>I tried If Statements like: </p>
  
  <pre><code>if($rows==$rows['AMOUNT']){
  //format here
  }
  </code></pre>
  
  <p>but it yields no advancement.
  The If Statement works, however, with the fieldnames if I want to,say, change the font-style of a single column.</p>