<?
include ("../includes/config.php");
include ("../includes/funciones.php");
//nos conectamos a mysql
$cnx = conectar ();
$nombreTabla = $_GET['nombreTabla'];
if (!tabla_existe($nombreTabla,$DATABASE)){
echo "Lo sentimos, pero esta noticia ya no existe";
$res="";
exit;
}else{
$sql = "SELECT * FROM ".$tabla." WHERE id=".$_GET['id'];
$res= mysql_query($sql) or die (mysql_error());
$array_res=mysql_fetch_array ($res);
$titulo = $array_res['titulo'];
$texto = $array_res['texto'];
$url = $array_res['url'];
$textodeurl = $array_res['textodeurl'];
$rutaMinis = "img/".$array_res['titPagina']."/miniaturas";
$rutaSuper = "img/".$array_res['titPagina']."/grandes";
$sql2 = "SELECT id, leyenda, imagen FROM $nombreTabla ";
$resultados = mysql_query($sql2, $cnx);
}
/*$colorCabeceraTitulos="#0066CC";
$colorBordes="#0066CC";
$colorBordesBox="#0066CC";
$colorDeFondo="#FFCC66";*/
?>