From 1527977fd685343eb40842f391e641b06fe5218b Mon Sep 17 00:00:00 2001 From: lyt Date: Wed, 1 Nov 2017 09:46:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=94=AE=E8=AF=8D=20=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E6=97=B6=E9=97=B4=E6=94=B9=E4=B8=BA=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/models/infokeywords_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/infokeywords_model.php b/application/models/infokeywords_model.php index 0e9a04a1..9ea6d73b 100644 --- a/application/models/infokeywords_model.php +++ b/application/models/infokeywords_model.php @@ -87,7 +87,7 @@ class infoKeywords_model extends CI_Model kw_datetime, kw_status FROM infoKeywords - WHERE kw_status=1 AND kw_datetime<'$today' $map + WHERE kw_status=1 AND kw_datetime<(SELECT DATEDIFF(S,'1970-01-01', GETDATE())) $map ORDER BY kw_datetime asc"; $query = $this->HT->query($sql);