Mysql erreur

Bonjour,
Bonjour,voil la mon erreur
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%%' at line 1
<html>
<form method="POST" action="">
Rechercher un mot : <input type="text" name="recherche">
<input type="SUBMIT" value="Search!">
</form>
</html>
<?php
//connection au serveur:
$cnx = mysql_connect( "localhost", "root", "" ) ;
// Récupère la variable
$recherche = isset($_POST['recherche']) ? $_POST['recherche'] : '';
// la requete mysql
$sql = mysql_query("SELECT name FROM spip_fuaj_adherents WHERE name LIKE %$recherche%") or die (mysql_error());

// affichage du résultat
while(list($name)=mysql_fetch_array($sql)){
echo 'Resultat de la recherche: '.$name.' <br />';
}

?>
Configuration: Windows XP
Internet Explorer 7.0

6 réponses

  1. Je mettrais des ' (simple quote) autour de '$recherche'
    SELECT name FROM spip_fuaj_adherents WHERE name LIKE %'$recherche'%") or
    1. encore un petit pb , c 'est qu'il ne m 'affiche que la table nom , meme si je rajoute toute les autre table dans la requete