From 9e3fdde9ed07f33edc1b6763b70763d36a8314b2 Mon Sep 17 00:00:00 2001 From: Dhaval Prajapati <42002820+dhavz@users.noreply.github.com> Date: Sat, 30 Oct 2021 19:29:35 -0400 Subject: [PATCH] Security Protection --- delete.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");