Browse Source

updated database

master
n0m1s 11 years ago
parent
commit
bb73afc00b
3 changed files with 3 additions and 3 deletions
  1. +2
    -2
      calendar.php
  2. +1
    -1
      getEvents.php
  3. BIN
      testdb.db

+ 2
- 2
calendar.php View File

@ -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


+ 1
- 1
getEvents.php View File

@ -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;


BIN
testdb.db View File


Loading…
Cancel
Save