From e2185019d854e1f2b077263d00c440284dd295ac Mon Sep 17 00:00:00 2001 From: AmarOk Date: Thu, 15 Oct 2015 11:52:06 +0200 Subject: [PATCH] day php --- day.php | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 day.php diff --git a/day.php b/day.php new file mode 100644 index 0000000..1573a61 --- /dev/null +++ b/day.php @@ -0,0 +1,49 @@ + + + + Kiwi Calendar + + + + + + + +
+ logo ESIR + +
+ +
+

+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(); +?> +
+ +