"Eleonora De Marinis" <eleonora.demari...@garr.it>, haber iletisinde sunlari 
yazdi:49fe92d0.2060...@garr.it...
> $sql = "SELECT * FROM table WHERE ID ='$_GET[id]' AND title LIKE
> '%$_GET[word]%'";
>
>
>
> -------- Original Message  --------
> Subject: [PHP-DB] SELECT LIKE with "%'" and without "%'"
> From: Emiliano Boragina <emiliano.borag...@gmail.com>
> To: php-db@lists.php.net
> Date: 05/03/2009 01:43 AM
>> 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.borag...@gmail.com  /
>>    // 15 40 58 60 02 ///////////////////////////
>> + 
>> _
>>
>
>
> 



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to