$sql = mysql_db_query($sql_bdd,"SELECT * FROM ". $rechtable ." WHERE titre LIKE '%".$recherche."%' ;",$db_link) or die(mysql_error());
$sql = mysql_db_query($sql_bdd,"SELECT * FROM ". $rechtable ." WHERE titre LIKE '%".$recherche."%' ;",$db_link) or die(mysql_error());
$sql = mysql_db_query($sql_bdd,"SELECT * FROM annonce WHERE MATCH (titre,description) AGAINST ('+velo' IN BOOLEAN MODE) ORDER BY id DESC LIMIT ". $_GET['debut'] .",". $nb_affichage_par_page ." ;",$db_link) or die(mysql_error());
Comment pourrais je ajouter une couleur dans le résultat à chaque fois que le mot velo s'affiche
str_replace('velo', '<span style="color:#ff8888">velo</span>');str_replace('velo', '<span style="color:#ff8888">velo</span>');
j'ai tester plusieurs fois et je n'arrive pas à le faire fonctionner dans while et avec une variable variable à la place de vélo$sql = mysql_db_query($sql_bdd,"SELECT * FROM annonce WHERE MATCH (titre,description) AGAINST ('+$recherche' IN BOOLEAN MODE) ORDER BY id DESC LIMIT ". $_GET['debut'] .",". $nb_affichage_par_page ." ;",$db_link) or die(mysql_error());
while ($data = mysql_fetch_array($sql))