<?php $app->get("/", function () use($app) { $db = new \Easy\PDOW\PDOW(); $sql = 'SELECT *, TIME(`createDate`) AS `createTime` FROM `temperature` WHERE `createDate` >= date_sub(now(), INTERVAL 2 DAY) ORDER BY `createDate` ASC'; $res = $db->query($sql); #var_dump($res); $app->render("index.php", array("temperatur" => $res)); });