Bon, bientot chauve, je ne trouve tjs pas la solution. Voici donc mon code(j'essaie d'être,claire :
<?php
if (isset($_POST['motcle'])&& ($_POST['motcle']!=''))
{
$mot=htmlspecialchars($_POST['motcle']);
$gras=$mot;
$balise='<strong>'.$gras.'</strong>';
$sql2="SELECT DISTINCT * FROM AB_forum_lexique
WHERE (lettre_lexique LIKE'%".$mot."%' OR mot LIKE'%".$mot."%' OR definition LIKE'%".$mot."%' )" ;
$req2 = mysql_query($sql2) or die('Erreur SQL !<br />'.$sql2.'<br />'.mysql_error());
$nb_sujets2 = mysql_num_rows ($req2);
if ($nb_sujets2 == 0)
{
echo 'Aucune réponse dans le lexique ne correspond à votre recherche.';
}
else
{
while ($mot=mysql_fetch_assoc($req2))
{
$lettre=str_replace($gras,$balise,$mot['lettre_lexique']);
$remp=str_replace($gras,$balise,$mot['mot']);
$definition=str_replace($gras,$balise,$mot2['definition']):
?>
<h2><?php echo $mot['lettre_lexique'];?></h2>
<fieldset><p><strong><?php echo $mot['mot'];?></strong>
</p></fieldset>
<fieldset><p><?php echo $mot['definition']; echo $definition=str_replace($gras,$balise,$mot2['definition']);?>
</p></fieldset>
<?php
}