我用这种方法将日期放入 mysql 数据库中2012-08-02 02:20:05
。现在,如何使用 smarty 在我的页面中打印。
mycode :(注意:send_date 是行的名称)
$sql = "SELECT m.*, s.photo, s.gender
FROM mail AS m, signup AS s
WHERE m.receiver = '" .mysql_real_escape_string($username). "'
AND m.sender = s.username AND inbox = '1' AND status = '1'
ORDER BY send_date DESC LIMIT " .$limit;
$rs = $conn->execute($sql);