require ('cabecera.php'); cabecera(); $conexion=conecta(); // Noticias $sql="SELECT * FROM (gen_noticia n LEFT OUTER JOIN gen_tiponoticia t ON n.IDTIPONOTICIA=t.ID) where CORRECTA=1 AND t.SIMBOLO='ACT' ORDER BY FECHA DESC"; $resultado_not= mysql_query($sql,$conexion) or alerta('Fallo en la consulta de noticias'); $num_not=mysql_num_rows($resultado_not); // Deportes $sql="SELECT * FROM (gen_noticia n LEFT OUTER JOIN gen_tiponoticia t ON n.IDTIPONOTICIA=t.ID) where CORRECTA=1 AND t.SIMBOLO='DEP' ORDER BY FECHA DESC"; $resultado_dep= mysql_query($sql,$conexion) or alerta('Fallo en la consulta de noticias'); $num_dep=mysql_num_rows($resultado_dep); ?>
Empresa