I have a prepare statement that finds the search criteria against my database which has an Articles table and Text and Title columns inside of it.
$stmt = $pdo->prepare('SELECT * FROM articles WHERE text OR title LIKE :search');
My problem is that the statement only searches by title and completely ignores text.
I tried it like so and it works but I also need title
$stmt = $pdo->prepare('SELECT * FROM articles WHERE text LIKE :search');