<br> <?php include_once "../model/Item.php"; $itemsObj = new Item(); $listInvoicing = $itemsObj->getListInvoicing(); if (count($listInvoicing) > 0) { ?> <table border="0" style="border: 1px solid; width: 500px" align="center" class="ui-widget-content"> <tr class='ui-widget-header'> <th style="width: 100px" >Name List</th> <th style="width: 400px">Item</th> </tr> <?php foreach ($listInvoicing as $list) { $items = $itemsObj->missingItems($list["id"], $list["name"]); if (count($items) > 0) { foreach ($items as $item) { ?> <tr> <td style=" text-align: center"><?php echo $item["list"]; ?> </td> <td><?php echo $item["item"]; ?> </td> </tr> <?php }