怎么做啊?貌似wap方面的服务,论坛上都没前辈回答 
 
  解决了。按照ecms的sql查询。自己写了查询语句,结合内置的规范写好了。程序插入 index.temp.php 需要调用的地方。
 
  <p> <?php $page=intval($_GET['page']); $query="select * from {$dbtbpre}ecms_download where checked=1 order by istop desc,newstime desc limit 10"; $sql=$empire->query($query); while($r=$empire->fetch($sql)) {         $titleurl="show.php?classid=".$r[classid]."&id=".$r[id]."&style=".$wapstyle."&cpage=".$page."&cid=".$r[classid]."&bclassid=".$bclassid;         //截取字数         if($pr['wapsubtitle'])         {                 $r[title]=sub($r[title],0,$pr['wapsubtitle'],false);         }         //时间格式         if($pr['wapshowdate'])         {                 $r[newstime]=format_datetime($r[newstime],$pr['wapshowdate']);         } ?> <a href="<?=$titleurl?>"><?=DoWapClearHtml($r[title])?></a> <small>(<?=$r[newstime]?>)</small><br /> <?php } ?> </p>
  
								 |