SELECT LIKE with "%" and without "%"
[email protected] ("Emiliano Boragina")
| Newsgroups | php.db |
|---|---|
| Message-ID | <000001c9cb7f$bce502e0$69c4fea9@portbora> |
Hello. I am using this: $sql = "SELECT * FROM table WHERE ID LIKE '%$_GET[id]%' AND title LIKE '%$_GET[word]%'"; But I want exactlu ID, not one part of many possibles Ids in the DB. How can I do that? Thanks + _ // Emiliano Boragina _ // Diseño & Comunicación ////////////////// + _ // [email protected] / // 15 40 58 60 02 /////////////////////////// + _