fix SQL Level 5, variable should not be inside string
This commit is contained in:
parent
c0f2689f4a
commit
7a7f346246
|
@ -47,7 +47,7 @@
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
$query = "SELECT bookname,authorname FROM books WHERE number =".'$number';
|
$query = "SELECT bookname,authorname FROM books WHERE number =".$number;
|
||||||
$result = mysqli_query($conn,$query);
|
$result = mysqli_query($conn,$query);
|
||||||
|
|
||||||
if (!$result) { //Check result
|
if (!$result) { //Check result
|
||||||
|
|
Loading…
Reference in New Issue
Block a user