[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [HS] syntaxe SQL et/ou php



Bonjour, Bonsoir, 

Le Fri, 4 Nov 2011 11:20:26 +0100, h.wismes@free.fr, vous avez écrit :

> mot clé (motcle) = "biographie richard stallman"
> 
> $query_string = "SELECT * FROM table WHERE infos LIKE '%$motcle%'  ";

 - transformer $motcle en tableau
 - like '%$motcle[1] or like '%$motcle[1] .... ainsi de suite jusqu'au
   dernier mot

--
Cordialement 
Grégory BULOT


Reply to: