Het mailtje wat gebaseerd is op de volgende code geeft als de prijs bijv 74,95 is wel de goede prijs door, maar maakt van de lineprice 74,00
Weet iemand hoe dat kan?
Groet
Gert
<?php
while ($row = mysql_fetch_assoc($query)) {
$i++;
$id = $row['id'];
$merknaam = $row['merknaam'];
$prijs = $row['prijs'];
$prijs = number_format($prijs, 2, ',', '');
$schoennaam = $row['schoennaam'];
$lineprice = $product[1] * $prijs;
$lineprice = number_format($lineprice, 2, ',', '');
$total = $total + $lineprice;
$total = number_format($total, 2, ',', '');
$btw = number_format(($total / 119) * 19, 2, ',', '');
$mailer->Body .="
<tr><td>".$id."</td>
<td>".$merknaam."</td>
<td>".$schoennaam."</td>
<td>".$product[1]."</td>
<td>".$product[2]."</td>
<td>".$prijs."</td>
<td align=right>".$lineprice."</td>
</tr>
";
}
?>
1.100 views