Commit 17058e9b authored by Jasin's avatar Jasin

Testing SQL

parent a9f885ca
...@@ -13,7 +13,7 @@ else ...@@ -13,7 +13,7 @@ else
{ {
require ("db.php"); require ("db.php");
$sql = 'select CAST(created AS DATE) as \"created\", SUM(delay) as \"delays\" from rnv.tours where lineLabel = ' . $lineLabel . ' group by CAST(created AS DATE) limit ' . $amount; $sql = 'select CAST(created AS DATE) as "created", SUM(delay) as "delays" from rnv.tours where lineLabel = ' . $lineLabel . ' group by CAST(created AS DATE) limit ' . $amount;
die($sql); die($sql);
$res = mysqli_query($conn, $sql); $res = mysqli_query($conn, $sql);
if ($conn->errno) if ($conn->errno)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment