 <tr bgcolor="black" style="color:#FFF;"><th>Commodity</th><th>Price</th><th>Chg</th><th>%Chg</th><th>Open</th><th>High</th><th>Low</th><th>Time</th></tr>
                    <?php //$metals=$this->db->get("metals")->result();
                        foreach($mcx as $d){?>
                    <tr bgcolor="black" style="color:#FFF;" id="<?php echo $d->metal;?>" class="metals_tr">
                        <td id="<?php echo $d->metal;?>" class="metals_tr"><?php echo $d->metal;?></td>
                         <td><?php echo $d->rate;?></td>
                        <td><?php echo $d->chg;?></td>
                        <td><?php echo $d->per_chg;?></td>
                        <td><?php echo $d->open;?></td>
                        <td><?php echo $d->high;?></td>
                        <td><?php echo $d->low;?></td>
                        <td><?php echo $d->mtime;?></td>
                        </tr>
                <?php }?>