include_once("funciones.php"); $evento = $_GET['evento']; if(!isset($evento)){ $evento = date("Y-m-d"); } $conexion = conectar(); $sql = "select * from calendario where fecha = '$evento' order by 'eventoid' DESC"; $res = query($sql); if(mysql_num_rows($res) > 0){ echo "
Actividades del dia
Versión
Estenográfica
"; while($fila = mysql_fetch_array($res)){ echo "
".$fila['fecha']."
".utf8_encode($fila['evento'])."
"; } }else{ echo "
No hay actividades en este dia.
"; } desconectar($conexion); ?>