Commit 444f5fde authored by Jasin's avatar Jasin

testing sql bugfix

parent 578fe5d8
......@@ -13,7 +13,7 @@ else
{
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;
$res = mysqli_query($conn, $sql);
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