From 7a7f34624636f1ae2986617dec43936e06425501 Mon Sep 17 00:00:00 2001 From: lacksfish Date: Fri, 11 Mar 2022 12:22:33 +0100 Subject: [PATCH] fix SQL Level 5, variable should not be inside string --- SQL/sql5.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQL/sql5.php b/SQL/sql5.php index 1403d14..bf49502 100644 --- a/SQL/sql5.php +++ b/SQL/sql5.php @@ -47,7 +47,7 @@ exit; } - $query = "SELECT bookname,authorname FROM books WHERE number =".'$number'; + $query = "SELECT bookname,authorname FROM books WHERE number =".$number; $result = mysqli_query($conn,$query); if (!$result) { //Check result