title: Looping through Array in PHP returned from MySQL Query
body: <p>I have a part of an application that loops through a return of a MySQL query (as we all know) in the form of an Array. However, I need several different format settings placed on some of the items returned, for example, one column needs Japanese currency, the other has American currency and one of the returned items is a link to an image. </p>
  
  <p>I would use the names of the column, however this same function that I am using to accomplish this will be used for many different tables.</p>
  
  <p>This is what I have for the loop so far.</p>
  
  <pre><code>while($row = mysql_fetch_array($result)) {      
      for($i=0;$i&lt;=count($row);$i++) {
      if($row[i]==$row['Yen_Price']) {// I didn't expect this to work...but this is what I would like to do.
          echo "Hello";
      }
      echo "&lt;td&gt;" . $row[$i] . "&lt;/td&gt;";
      }
  }
  </code></pre>