Pls help me..email problem..

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
deljason
Forum Newbie
Posts: 1
Joined: Fri Apr 17, 2009 1:59 am

Pls help me..email problem..

Post 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..
Post Reply