Hi I'm new to PDO and trying to do a search query. Im pretty sure the problem is in the syntax. Would be very cool if y'all could help.
So I'am doing a game commerce web application. I have a search bar to search games by name.
$stmt = $pdo->prepare('SELECT * FROM JOGO WHERE nome LIKE :name');
$stmt->execute(array('nome' => $search_input));
$search_input variable is probably not being read and the query is not working.
EDIT: Still not working