Created
June 18, 2014 22:37
-
-
Save cagartner/9f4cc0121730a7840626 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Tabela Posts: | |
| // - id | |
| // - nome | |
| // - descricao | |
| // - status | |
| // ------------------------- | |
| // Tabela: Pages: | |
| // - id | |
| // - nome | |
| // - descricao | |
| // - status | |
| // --------------------------------------------- | |
| // SELECT | |
| $query = "SELECT posts.*, pages.* FROM posts, pages WHERE pages.nome LIKE '%Titulo%' OR pages.descricao LIKE '%Titulo%' OR posts.nome LIKE '%Titulo%' OR posts.descricao LIKE '%Titulo%'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment