昨天发布的10篇文章
<?php
$beginYesterday
=
mktime
(0,0,0,
date
(
'm'
),
date
(
'd'
)-1,
date
(
'Y'
));
$endYesterday
=
mktime
(0,0,0,
date
(
'm'
),
date
(
'd'
),
date
(
'Y'
))-1;
?>
[e:loop={
"select * from [!db.pre!]ecms_news where newstime BETWEEN $beginYesterday and $endYesterday order by newstime desc limit 10"
,0,24,0}]
<?=
$bqno
?>、<a href=
"<?=$bqsr['titleurl']?>"
target=
"_blank"
><?=
$bqr
[
'title'
]?></a><?=
date
(
'Y-m-d'
,
$bqr
[newstime])?> <br>
[/e:loop]
本文摘自网络,不代表短经典网立场 https://www.duanjingdian.com/793.html