ok
Direktori : /home2/selectio/www/lilyexpresslive/software/admin/ |
Current File : /home2/selectio/www/lilyexpresslive/software/admin/delete-shipment.php |
<?php session_start(); $clientId=$_SESSION['user']['id']; $clientLocation=$_SESSION['user']['location']; include "db.php"; $pickup_id=array(); $pickup_id =$_GET['pickup_id']; $pickup_id=explode(",",$pickup_id); $type =$_GET['type']; foreach($pickup_id as $id) { $sql="DELETE FROM pickup_entry WHERE id=$id"; $result=$con->query($sql); /*Tracking Module Start*/ $statement ="DELETE from tbl_tracking WHERE pickup_entry_id=$id"; $result=$con->query($statement); /*Tracking Module End*/ } if($type=='pickup'){ if($result) echo"<script>alert('Deleted Successfully...');window.location = 'pickup-entry.php';</script>"; else echo"<script>alert('Failed To Deleted...');window.location = 'pending-pickup-entry.php';</script>"; } else if($type=='cargo') { if($result) echo"<script>alert('Status Deleted Successfully...');window.location = 'cargo-pickup-entry-list.php';</script>"; else echo"<script>alert('Failed To Deleted...');window.location = 'cargo-pickup-entry-list.php';</script>"; } else { if($result) echo"<script>alert('Status Deleted Successfully...');window.location = 'pending-modicare-pickup-entry.php';</script>"; else echo"<script>alert('Failed To Deleted...');window.location = 'pending-modicare-pickup-entry.php';</script>"; } ?>