include("funciones.php"); $sqld = "select * from noticias where activo='s' and id_noticia='".$_GET['id_noticia']."'"; $rd = mysql_query($sqld); if (mysql_num_rows($rd)==0) { header("Location: noticias.php"); } $roun = mysql_fetch_assoc($rd); $foto = getRutaImagenPpal($roun['id_noticia'], 'jpg','noticias', false); ?>
echo $roun['titulo']; ?>
echo fecha($roun['fecha']); ?>
echo $roun['texto']; ?>
$sqla = "select * from adjuntos where seccion='noticias' and id_relacion='".$roun['id_noticia']."' order by orden asc";
$ra = mysql_query($sqla);
while ($roua = mysql_fetch_assoc($ra))
{
$adj = getRutaArchivoAdjunto($roua['id_adjunto'], $roua['extension'], false);
if (file_exists($adj))
{
?>
echo $roua['descripcion']; ?>
}
}
?>
echo nl2br($rouc['texto']); ?>