diff --git a/day.php b/day.php
new file mode 100644
index 0000000..1573a61
--- /dev/null
+++ b/day.php
@@ -0,0 +1,49 @@
+
+
+
+
+
+open('testdb.db');
+ }
+ }
+
+ $db = new MyDB();
+ if(!$db) echo $db->lastErrorMsg();
+
+ $date = $_GET["date"];
+ $ret = $db->query('SELECT titre, dtstart, dtend, localisation, description FROM events WHERE dtstart<"'.date('Y-m-d',strtotime($date . "+1 days")).'" AND dtstart>"'.date('Y-m-d',strtotime($date)).'";');
+ //Show events
+ while($row = $ret->fetchArray(SQLITE3_ASSOC) ) {
+ echo "
\n";
+ echo "
".$row['titre']."
\n";
+ echo "
".date('H:i',strtotime($row['dtstart']))." - ".date('H:i',strtotime($row['dtend'])).". ".$row['localisation']."
\n";
+ echo "
".$row['description'] ."
\n
\n
\n";
+ }
+
+ $db->close();
+?>
+
+
+