HistoriqueHistorique

0) { $q_texte = mysql_result($result,0,"texte"); $formated_texte = $q_texte; $myquery = "SELECT id,image FROM images WHERE rubrique='historique' ORDER BY id"; $iresult = mysql_query($myquery,$mycon); $nbi = mysql_num_rows($iresult); if ($nbi>0) { for ($i=0;$i<$nbi;$i++) { $qi_id = mysql_result($iresult,$i,"id"); $qi_image = mysql_result($iresult,$i,"image"); $look = "[img".($i+1)."_".$qi_id."]"; $pos = strpos($q_texte,$look); if (!($pos===false)) { $replace = "

"; $formated_texte = str_replace($look,$replace,$formated_texte); } } } } ?>