<?php
$ltime=time()-86400*3;
?>
{pc:get sql="select * FROM v9_news where inputtime>$ltime order by id desc" num="13" page="$page" return="data"}
{loop $data $n $r}
<li><a target="_blank" href="{$r[url]}" {title_style($r[style])}>{$r[title]}</a></li>
{/loop}
<ul class="pagelist">
{$pages}
</ul>
{/pc}
sql调用最近三天发布的文章
时间: 2024-10-20 22:28:54