帝国cms在控制面板如何调用新闻的方法

前端之家收集整理的这篇文章主要介绍了帝国cms在控制面板如何调用新闻的方法前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

<?PHP
$w_query="select * from {$dbtbpre}ecms_news where checked=1 order by newstime desc limit 5";
$w_sql=$empire->query($w_query);
while($w=$empire->fetch($w_sql))
{
$titleurl=sys_ReturnBqTitleLink($w);
?>
标题:<?=$w[title]?> 时间:<?=format_datetime($w[newstime],"Y-m-d")?> 连接:<?=$titleurl?>
<?PHP
}
?>

猜你在找的帝国CMS相关文章