SELECT LIKE with "%" and without "%"
| From: | Emiliano Boragina | Date: | Sat, 02 May 2009 23:43:02 +0000 |
| Subject: | SELECT LIKE with "%" and without "%" | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-46164@lists.php.net to get a copy of this message | ||
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 //////////////////
+
_
// emiliano.boragina@gmail.com /
// 15 40 58 60 02 ///////////////////////////
+
_