From 0c7ef8e979f8daee9f42606d1c94148ee64ccd45 Mon Sep 17 00:00:00 2001 From: dosse91 Date: Tue, 1 Oct 2019 06:46:22 +0200 Subject: [PATCH] Fixed query error in newer versions of sqlite and postgre --- results/stats.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/results/stats.php b/results/stats.php index 8ea04b6..834afed 100644 --- a/results/stats.php +++ b/results/stats.php @@ -110,7 +110,7 @@ if($stats_password=="PASSWORD"){ $q->store_result(); $q->bind_result($id,$timestamp,$ip,$ispinfo,$ua,$lang,$dl,$ul,$ping,$jitter,$log,$extra); } else if($db_type=="sqlite"||$db_type=="postgresql"){ - $q=$conn->prepare("select id,timestamp,ip,ispinfo,ua,lang,dl,ul,ping,jitter,log,extra from speedtest_users order by timestamp desc limit 0,100"); + $q=$conn->prepare("select id,timestamp,ip,ispinfo,ua,lang,dl,ul,ping,jitter,log,extra from speedtest_users order by timestamp desc limit 100"); $q->execute(); }else die(); }