include_once("funciones.php");
$evento = $_GET['evento'];
$tabla = $_GET['tabla'];
if(!isset($evento)){
$evento = date("Y-m-d");
}
$conexion = conectar();
$sql = "select * from $tabla where fecha = '$evento' order by fecha,hora";
$res = query($sql);
$separador1 = "Fecha: ";
$separador2 = " , Hora: ";
if(mysql_num_rows($res) > 0){
while($fila = mysql_fetch_array($res)){
//formateamos la fecha a formato "Cristiano......."
$dd= substr($fila['fecha'],8,2);
$mm= substr($fila['fecha'],5,2);
$aaaa= substr($fila['fecha'],0,4);
$fechaOk = $dd."/".$mm."/".$aaaa;
echo "
".$fila['evento']." |
|
";
}
}else{
echo " |
";
}
desconectar($conexion);
?>