<?php header("Access-Control-Allow-Origin: *"); ?> <?php $packid=$_GET["packid"]; $userid=$_GET["userid"]; // Include config file require_once "configs.php"; $rows=0; $id=$userid; $sql = "delete from ansa where ownansaid =$userid and packid =$packid;"; $ires=$db->exec($sql); if ($ires) echo "Ansa Deleted";else echo "error"; $sql = "delete from dyna where ownerid =$userid and packid =$packid;"; $ires=$db->exec($sql); if ($ires) echo "Dyna Deleted";else echo "error"; $sql = "delete from kepa where ownkepaid =$userid and packid =$packid;"; $ires=$db->exec($sql); if ($ires) echo "Kepa Deleted";else echo "error"; ?> <script> //history.go(-1); window.location.replace(document.referrer); </script>
Edit file:removeransap.php939