From 9399e82b8b355430b0f79b0be0c45a3a6a649887 Mon Sep 17 00:00:00 2001 From: wlx Date: Fri, 11 Jan 2013 01:30:12 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=B6=E9=97=B4=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/default/controllers/IndexController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/default/controllers/IndexController.php b/application/default/controllers/IndexController.php index bcce6c28..98b52505 100755 --- a/application/default/controllers/IndexController.php +++ b/application/default/controllers/IndexController.php @@ -70,7 +70,7 @@ class IndexController extends Zend_Controller_Action $this->view->news = $rows; $time = date("Y-m-d H:i:s",time()); - $sql = "SELECT * FROM archive WHERE is_pub=true AND ts_published<'$time' LIMIT 8"; + $sql = "SELECT * FROM archive WHERE is_pub=true AND ts_published<'$time' LIMIT 8 order by ts_published desc"; $sth = $this->db->query($sql); $rows = $sth->fetchAll(PDO::FETCH_BOTH);