关于织梦移动版里的调用指定栏目,要怎么加标签?
我如何在下列推荐调用中,加上指定栏目的ID?在哪里如何加呢?$dsql->SetQuery("selectid,title,litpic,description,clic...
我如何在下列推荐调用中,加上指定栏目的ID?在哪里如何加呢?
$dsql->SetQuery("select id,title,litpic,description,click,pubdate from `#@__archives` where flag like '%c%' and arcrank=0 order by id desc limit 8");
$dsql->Execute();
while($row=$dsql->GetObject())
{
$row->description = mb_substr($row->description,0,30,'gb2312');
$row->title = mb_substr($row->title,0,20,'gb2312');
$row->pubdate = date('Y-m-d H:i',$row->pubdate);
$articles_tuijan .= "
<li><a href='wap.php?action=article&id={$row->id}'>
<div>
<img alt='{$row->title}' src='{$row->litpic}' width='140' height='115'>
<h3 style='height:56px'>{$row->title}</h3>
</div>
</a>
</li>";
} 展开
$dsql->SetQuery("select id,title,litpic,description,click,pubdate from `#@__archives` where flag like '%c%' and arcrank=0 order by id desc limit 8");
$dsql->Execute();
while($row=$dsql->GetObject())
{
$row->description = mb_substr($row->description,0,30,'gb2312');
$row->title = mb_substr($row->title,0,20,'gb2312');
$row->pubdate = date('Y-m-d H:i',$row->pubdate);
$articles_tuijan .= "
<li><a href='wap.php?action=article&id={$row->id}'>
<div>
<img alt='{$row->title}' src='{$row->litpic}' width='140' height='115'>
<h3 style='height:56px'>{$row->title}</h3>
</div>
</a>
</li>";
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询