hello,
thanks for the support. I have tried everythink , but I don't get the right result. please could you help me to solve this issue?
I want to display the next records:
Subtotaal excl. BTW: €69.38
Afhalen winkel (Afhalen): €0.00
Groepskorting: -€7.53
Totaal excl. BTW: €61.85
BTW laag 6 %: €2.67
BTW hoog 19 %: €3.29
Totaal incl. BTW: €67.81
this is the code:
$order_totaal =("select orders.orders_id, orders.order_total, orders.order_tax, orders_total.orders_id, orders_total.title, orders_total.text, orders_total.value, orders_total.class
FROM " . TABLE_ORDERS . "
JOIN " . TABLE_ORDERS_TOTAL . "
ON orders.orders_id = orders_total.orders_id
WHERE orders.orders_id = '" . (int)$oID . "'
ORDER BY orders_total.sort_order ASC ");
$result = mysql_query($order_totaal);
while($row = mysql_fetch_array($result)){
$subtotaalexbtw = $row["order_total"] - $row["order_tax"];
echo ' <tr>' . "\n" .
' <td align="right">' . $row['title'] . '</td>' . "\n" .
if ($row['class'] == "ot_total") {
echo ' <td align="right">' . $row['text'] . '</td>' . "\n" ;
}
' <td align="right">' . $row['text'] . '</td>' . "\n" .
' </tr>' . "\n";
}
please could you tell me how exactly