1 2 3 4 5 6 7 8 9 10 11 | <? $path = $_GET [path]; $r = $empire ->fetch1( "select tagname,tagkey,tagintro,cid,path from {$dbtbpre}enewstags where path='$path' limit 1" ); $tagsql = $empire ->query( "select tagid,tagname,path from {$dbtbpre}enewstags where cid='$r[cid]'" ); while ( $r = $empire ->fetch( $tagsql )) { ?> <a href= "/tag/<?=$r[path]?>.html" title= "<?=$r[tagname]?>" ><?= $r [tagname]?></a> <? } ?> |
cid=1为tags分类ID为1的信息
新闻热点
疑难解答