让消息按照时间新旧排序
This commit is contained in:
parent
b44784d565
commit
a88377116e
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue