Hello, I'm trying to search in 3 different tables, see my code:
$buscando = $pdo->query("SELECT * FROM filmes WHERE nome LIKE '%$busca%' AND status='ativo' ORDER BY nome ASC");
The tables would be: animes, films and series. All have the same columns, that is, it would be WHERE nome LIKE '%$busca%' AND status='ativo'
for all.
I tried to perform using this select: SELECT * FROM animes, filmes, series
, but did not return anything. Could you help me?
Structures of my tables:
filmes
:
series
:
Ifyouprefertheimageshosted:
animes: prntscr.com/ga9nw9 || movies: prnt.sc/ga9o5w || series: prnt.sc/ga9occ