This is the code I am using. It only returns queries whose value of $isbn does not start with 0.
The rows with isbn value like :09913456 are not returned.
The same query in PhpMyadmin works fine.
$isbn = $_GET["isbn"];
$query = 'SELECT * FROM crossword_data WHERE isbn LIKE '.$isbn;
$result = mysqli_query($con,$query);
while($row = mysqli_fetch_array($result))
{
echo $row['title'];
}
mysqli_close($con);
?>
SQL Injectionplease consider usingPDOfor data access.isbnfield (varchar / number)?varcharorchardue to the leading zeros.$isbn = "%;--". And now I have your entire table. Sanitize your inputs.