I am trying to create a table that shows each order and the amount of product ordered,shipped and remaining. so far no luck. im not seeing any errors but the table isnt displaying correctly.
here is the code please help!!
[php]<?php
$result = mysql_query(“SELECT orders.ID, orders.two_ply, orders.three_ply, orders.ordered_by, orders.ponumber, orders.end_shipping, shipping.ponumber, SUM(shipping.twoply) AS twoply, SUM(shipping.threeply) AS threeply
FROM orders, shipping
WHERE orders.ponumber=shipping.ponumber”) or die( mysql_error());
$orderprogress="
Order ID | 2ply Ordered | 2ply Shipped | 2ply Remaining | 3ply Ordered | 3ply Shipped | 3ply Remaining | Ordered By | PO Number | Ship by Date |
---|---|---|---|---|---|---|---|---|---|
” . $row[‘ID’] . “ | ”;” . $row[‘two_ply’] . “ | ”;” . $row[‘twoply’] . “ | ”;” . ($row[‘two_ply’]-$row[‘twoply’]) . “ | ”;” . $row[‘three_ply’] . “ | ”;” . $row[‘threeply’] . “ | ”;” . ($row[‘three_ply’]-$row[‘threeply’]) . “ | ”;” . $row[‘ordered_by’] . “ | ”;” . $row[‘ponumber’] . “ | ”;” . $row[‘end_shipping’] . “ |
mysql_close();
?>[/php]