Helo, I'm trying to select a column from my SQL database. I've put a form and got the data and then put it into a variable.
But when I try to check the equality of the condition with my SQL database, it doesn't work. I want to check the strict equality of the data stocked in the search variable so I've used =.
I don't really know how to compare the column with a variable for equality.
if(isset($_GET['s']) AND !empty($_GET['s']));{
$search = htmlspecialchars($_GET['s']);
$result = $bdd->query('SELECT * FROM table WHERE column = '.$search.'' ) ;
}