<div style="margin-left: 25px;" align="center"> <table border="1" cellpadding="0" cellspacing="0"> <thead> <tr <?php echo isset($_GET["tipoReporte"]) ? "" : "class='ui-widget-header'"; ?> > <th width="290">Customer</th> <th width="100">Need</th> </tr> </thead> <tbody> <?php include_once "../model/Item.php"; $itemObj = new Item(); $customers = $itemObj->salesByItemDetail($_GET["iditem"]); $available = $_GET["available"]; foreach ($customers as $customer) { ?> <tr> <td> <?php echo $customer["name"]; ?> </td> <td> <?php echo round($customer["need"], 2); ?> </td> </tr>