Bonjour,
Soit une table avec 3 champs (champ1, champ2, champ3) et un formulaire de recherche contenant juste un input text et un bouton de validation.
J'aimerais afficher les résultats correspondants à la condition suivante :
Version php : preg_match('#'.$_GET['recherche'].'#i', $champ1.$champ2.$champ3);
Version MySQL : ???
Je cherche donc la syntaxe correct exprimant : WHERE $champ1.$champ2.$champ3 LIKE '%".$_GET['recherche']."%'
D'avance merci :wink:
Soit une table avec 3 champs (champ1, champ2, champ3) et un formulaire de recherche contenant juste un input text et un bouton de validation.
J'aimerais afficher les résultats correspondants à la condition suivante :
Version php : preg_match('#'.$_GET['recherche'].'#i', $champ1.$champ2.$champ3);
Version MySQL : ???
Je cherche donc la syntaxe correct exprimant : WHERE $champ1.$champ2.$champ3 LIKE '%".$_GET['recherche']."%'
D'avance merci :wink: