diff --git a/calendar.php b/calendar.php index ed9e9a6..a7f4a89 100644 --- a/calendar.php +++ b/calendar.php @@ -4,8 +4,8 @@ # header("Location:."); # exit; # } - header('Content-type: text/calendar; charset=utf-8'); - header('Content-Disposition: inline; filename=kiwicalendar.ics'); +# header('Content-type: text/calendar; charset=utf-8'); +# header('Content-Disposition: inline; filename=kiwicalendar.ics'); include("./getEvents.php"); $icalheader = "BEGIN:VCALENDAR diff --git a/getEvents.php b/getEvents.php index 15f1581..7861e59 100644 --- a/getEvents.php +++ b/getEvents.php @@ -15,7 +15,7 @@ echo("Impossible d'acceder à la base de donnée"); die(); } - $stmt = $pdo->prepare("SELECT * FROM events"); + $stmt = $pdo->prepare("SELECT titre, localisation, dtstart, dtend, description FROM events, categorie WHERE events.categorie = categorie.id"); $stmt->execute(); $result = $stmt->fetchAll(); return $result; diff --git a/testdb.db b/testdb.db index dc6b5e1..046fe43 100644 Binary files a/testdb.db and b/testdb.db differ