include ("../scripts/valida.php"); include("../Connections/felix.php"); $cadena="Select id_Nota,a1.id_Seccion,a2.Seccion,Fecha_Desde,Fecha_Hasta,Titulo,Usuario,EnInicio from coc_noticia a1,coc_seccion a2 " ; $cadena=$cadena." where a1.Id_Seccion=a2.Id_Seccion and curdate() between Fecha_Desde and Fecha_Hasta and usuario='".$_SESSION['usuario']."' order by fecha_desde"; global $conn; $consu = $conn->query($cadena); $query= $consu->fetchAll() ; //$query = mysql_query($cadena); //$data = mysql_fetch_array($query); ?>