%PDF- %PDF-
Direktori : /proc/self/root/home/eirtvhdf/courier.eirtechs.com/ |
Current File : //proc/self/root/home/eirtvhdf/courier.eirtechs.com/print_pdets.php |
<?php include 'db_connect.php'; $ids = $_GET['ids'] ; $parcels = $conn->query("SELECT * FROM parcels where id in ($ids) "); $branch = array(); $branches = $conn->query("SELECT *,concat(street,', ',city,', ',state,', ',zip_code,', ',country) as address FROM branches where id in (SELECT from_branch_id FROM parcels where id in ($ids) ) or id in (SELECT to_branch_id FROM parcels where id in ($ids) ) "); while($row = $branches->fetch_assoc()): $branch[$row['id']] = $row['address']; endwhile; while($row = $parcels->fetch_assoc()): ?> <table width="100%"> <tr> <td colspan="3">Tracking Number : <b><?php echo $row['reference_number'] ?></b></td> </tr> <tr> <td width="33.33%"> <p><b>Sender: <?php echo ucwords($row['sender_name']); ?></b></p> </td> <td width="33.33%"> <p><b>Recipient: <?php echo ucwords($row['recipient_name']); ?></b></p> </td> <td width="33.33%"></td> </tr> </table> <?php endwhile; ?>