Hello, I have 2 tables of books: 1. books 2. books_archive how do I write query that search "title" in both tables? WHERE (table = '$title') in both table... ? Thank you in advance.
you can select from more than 1 table, using the as method. e.g.: SELECT * FROM `books` as T1, `books_archive` as T2 WHERE `name` = :name