+
+ // Check if there are any results
+ if ($resultShowOrders->num_rows > 0) {
+ // Display table
+ echo '
List of Delivery Work Orders
num_rows > 0) { - // Display table - echo 'Account | -WorkOrder No | +Account | +WorkOrder No | Status | -Create Date | +Create Date | Service Priority | -Required By | '; +Required By | '; - // Only display the Action column if the user is an admin - if ($_SESSION['role'] == 'admin') { - echo 'Action | '; - } - echo 'Action | '; + } + echo ' '; @@ -626,16 +626,19 @@
---|