全站搜索结果里调用栏目名称方法
把栏目ID转换为栏目名称输出:
- <?php
- $ktz_sql="select classname,classpath from {$dbtbpre}enewsclass where classid={$r[classid]}";
- $ktz_result=$empire->query($ktz_sql);
- while( $ktz_row = $empire->fetch($ktz_result)){
- echo "<a href='{$public_r['newsurl']}{$class_r[$class_r[$r[classid]][bclassid] ]['classpath']}'>{$class_r[$class_r[$r[classid]][bclassid]] ['classname']}</a>";
- }
- ?>