From 8c5b5039bb37c4ea7c70d4d254b1d159168f1259 Mon Sep 17 00:00:00 2001 From: iamdhil Date: Tue, 22 Feb 2022 12:20:11 -0500 Subject: [PATCH 1/3] added change --- SQL/sql2.php | 1 + 1 file changed, 1 insertion(+) diff --git a/SQL/sql2.php b/SQL/sql2.php index 0023712..d01c76c 100644 --- a/SQL/sql2.php +++ b/SQL/sql2.php @@ -28,6 +28,7 @@ // Create connection $conn = new mysqli($servername, $username, $password,$db); + // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); From a8ea5abb08ee1ad1bc6629a7181bf7efadb7a33d Mon Sep 17 00:00:00 2001 From: iamdhil Date: Tue, 22 Feb 2022 12:28:23 -0500 Subject: [PATCH 2/3] added change --- .idea/.gitignore | 3 +++ .idea/Vulnerable-Web-Application.iml | 9 +++++++++ .idea/misc.xml | 6 ++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ SQL/sql3.php | 2 ++ 6 files changed, 34 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/Vulnerable-Web-Application.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/Vulnerable-Web-Application.iml b/.idea/Vulnerable-Web-Application.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/Vulnerable-Web-Application.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..2882444 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/SQL/sql3.php b/SQL/sql3.php index 773619f..d73dba7 100644 --- a/SQL/sql3.php +++ b/SQL/sql3.php @@ -20,6 +20,8 @@ + + Date: Tue, 22 Feb 2022 12:34:00 -0500 Subject: [PATCH 3/3] added change --- SQL/sql2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQL/sql2.php b/SQL/sql2.php index d01c76c..f844b93 100644 --- a/SQL/sql2.php +++ b/SQL/sql2.php @@ -27,7 +27,7 @@ // Create connection $conn = new mysqli($servername, $username, $password,$db); - + $conn = mysqli_connect($servername,$username,$password,$db); // Check connection if ($conn->connect_error) {