<?php

echo heading($heading,3,'align="center"') ; 


/**
*
*	here $result_array is an array, not an array of objects
*	because we used $query->result_array() instead of $query->result() 
*
*/

if( count($result_array)>0 ): 

?>

<table width="500" align="center" cellpadding="6" cellspacing="2">

<tr class="tdcolor">
<td width="2%" align="center">No.</td>
<td width="2%" align="center">Dollar Rate</td>
<td width="2%" align="center">Date</td>

</tr>

<?php 

$i=1;

foreach($result_array as $row):

?>

<tr class="tdcolor2">
<td align="center"><?=$i?></td>
<td align="center"><?=$row['dollar_amt']?></td>

<td align="center"><?=$row['dollar_date']?></td>


</tr>

<?php $i++; endforeach; ?>


</table>

<?php endif; ?>