session_start(); include ("mysql.php"); if(isset($_GET['Idi'])){$_SESSION['Idi2']=$_GET['Idi']; $Idi=$_GET['Idi'];}else{$Idi=$_SESSION['Idi2'];} if (!$Idi)$Idi=1; $Fichero_idioma="idiomas/".$Dim2[$Idi].".php"; include("$Fichero_idioma"); $loc="fotosvideos"; $t=$_REQUEST['t']; if($t!="v"){ $t="f"; } $Cod_not=$_REQUEST['Cod_not']; if($Cod_not!=""){ $qf="SELECT B.Titulo from Noticias A, Noticias_idiomas B where A.Cod_not=B.Cod_not AND B.Codid=$Idi AND A.Cod_not=$Cod_not AND A.Activo='Si' ORDER BY A.Orden"; //echo($qf); $resf=mysql_query ($qf,$db); if (mysql_num_rows($resf)>0) { while ($rowf= mysql_fetch_row ($resf)) { $Titulo9=stripslashes($rowf[0]); } }else{ header("Location: index.php");exit(); } }else{ header("Location: index.php");exit(); } ?>