//非常感谢楼主,解决了我的一个难题,tags链接我这样写的: <?php $fr=$empire->fetch1("select infotags from {$dbtbpre}ecms_article_data_1 where id='$bqr[id]'"); ?> <?php $alltag=""; $tag=explode(",",$fr[infotags]); for($t=0;$t<count($tag);$t++) { $fr=$empire->fetch1("select tagid from {$dbtbpre}enewstags where tagname='$tag[$t]'"); $tagid=$fr[tagid]; $alltag.='<a href="/e/tags/?tagid='.urlencode($tagid).';tempid=8">'.$tag[$t].'</a>'; } ?>
|