%PDF- %PDF-
Direktori : /home/eirtvhdf/payments.hire-va.com/api/ |
Current File : /home/eirtvhdf/payments.hire-va.com/api/_deletelinks.php |
<?php require '../inc/c.php'; $conn = mysqli_connect($sever,$db_u,$db_p,$db); if($conn->connect_error){ die('Error: connection failed : '.$conn->connect_error); } $linkId='0'; if(isset($_POST['linkId'])) $linkId=$_POST['linkId']; else $linkId="0"; if($linkId=='0') { die("Error"); } $sql = "UPDATE payments SET is_active=0 WHERE id='$linkId'"; if ($conn->query($sql) === TRUE) { $result = $conn->insert_id; } $conn->close(); echo 'Deleted'; ?>