diff --git a/delete.php b/delete.php index c20fef6..78e60de 100644 --- a/delete.php +++ b/delete.php @@ -3,7 +3,7 @@ include("config.php"); //getting id of the data from url -$id = $_GET['id']; +$id = mysqli_real_escape_string($_GET['id']); //deleting the row from table $result = mysqli_query($mysqli, "DELETE FROM users WHERE id=$id");