Tuesday, 15 October 2024

Delete row using Mysqli

 Hi all,

Use this code

...............................

<?php


include('dbconnect.php');


// Use prepared statements to avoid SQL injection

$query = "delete FROM tbl_patient where id='$_GET[id]'";

mysqli_query($con, $query);

header('location:viewdoctor.php');



?>

No comments:

Post a Comment