我有以下代码:
<td class="dataTableContent">
<?php
$cuttinglist_weight_query = tep_db_query("select op.orders_id, p.products_id, SUM(p.products_weight) as total_products_weight from " . TABLE_ORDERS_PRODUCTS . " op left join " . TABLE_PRODUCTS . " p on (op.products_id = p.products_id) where orders_id = '" . (int)$cuttinglist['orders_id'] . "'");
$cuttinglist_weight = tep_db_fetch_array($cuttinglist_weight_query);
echo $cuttinglist_weight['total_products_weight'];
?>
</td>
这将打印订单列的总重量:
在下面标题为“要准备的总重量”的框中,我需要显示该栏的总重量,有人有什么想法吗?