让消息按照时间新旧排序

This commit is contained in:
wlx 2012-05-10 06:38:36 +00:00
parent b44784d565
commit a88377116e
1 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,8 @@ class message
$sql .= " AND m.rid IN (-1,0,$uid)"; $sql .= " AND m.rid IN (-1,0,$uid)";
} }
$sql.=" order by sendtime desc";
$result = $db->query($sql); $result = $db->query($sql);
$rows = $result->fetchAll(); $rows = $result->fetchAll();