0) { $Bann=0; while ($rowf= mysql_fetch_row ($resf)) { $Bann++; $Cod_not2=$rowf[0]; $Titulo_not=stripslashes($rowf[1]); $Texto=stripslashes($rowf[2]); $Fecha=fechaformat($rowf[3]); $Texto=str_replace("[N]","",$Texto); $Texto=str_replace("[/N]","",$Texto); $Texto=str_replace("[C]","",$Texto); $Texto=str_replace("[/C]","",$Texto); $Texto=str_replace("[A]","",$Texto); $Texto=str_replace("[URL]","href=\"",$Texto); $Texto=str_replace("[/URL]","\" target=\"_blank\">",$Texto); $qf="select A.Foto,B.Titulo from Imagen A, Imagen_idiomas B where A.Foto!='' AND A.Foto!='Nofoto' AND A.Cod_img=B.Cod_img AND B.Codid=$Idi AND A.Cod_not=$Cod_not2 AND A.Activo='Si' AND A.Orden=1"; //echo($qf); $resf=mysql_query ($qf,$db); $Tot_img=mysql_num_rows($resf); if (mysql_num_rows($resf)>0) {$Ban=0; if($Tot_img==1){ $rowf= mysql_fetch_row ($resf); $Foto=$rowf[0]; $Tit1=$rowf[1]; } } ?>

0) { while($rowf2= mysql_fetch_row ($resf2)){ $Enlace=$rowf2[0]; $Tit1=stripslashes($rowf2[1]); ?>"; } } ?>