From a88377116ebba80d78cd1ea9004ebf620c89c585 Mon Sep 17 00:00:00 2001 From: wlx Date: Thu, 10 May 2012 06:38:36 +0000 Subject: [PATCH] =?UTF-8?q?=E8=AE=A9=E6=B6=88=E6=81=AF=E6=8C=89=E7=85=A7?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=96=B0=E6=97=A7=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/models/message.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/models/message.php b/application/models/message.php index 9a1a03cd..0bbebf03 100644 --- a/application/models/message.php +++ b/application/models/message.php @@ -57,6 +57,8 @@ class message $sql .= " AND m.rid IN (-1,0,$uid)"; } + $sql.=" order by sendtime desc"; + $result = $db->query($sql); $rows = $result->fetchAll();