Page 1 of 1

Pls help me..email problem..

Posted: Fri Apr 17, 2009 2:08 am
by deljason
anyone..pls help me..
how can this code be send in email..

<?php
$numItem = count($orderedItem);
$subTotal = 0;
for ($i = 0; $i < $numItem; $i++) {
extract($orderedItem[$i]);
$subTotal += $pd_price * $od_qty;
?>
<tr class="content">
<td><?php echo "$od_qty X $pd_name"; ?></td>
<td align="right"><?php echo displayAmount($pd_price); ?></td>
<td align="right"><?php echo displayAmount($od_qty * $pd_price); ?></td>



<?php
}
?>

<tr class="content">
<td colspan="2" align="right">Total</td>
<td align="right"><?php echo displayAmount($subTotal); ?></td>
</tr>

and the output is..

1 X aw3 P1 P1
1 X asd P1 P1
Total P2


pls..pls..pls..