本文关键字词:自定义伪静态,栏目目录伪静态,内容目录伪静态,帝国cms伪静态,SEO栏目优化......
2023-05-18 179
2、第1种写法:
?phpif($navinfor['writer']){ $writer=$navinfor['writer'];?>[e:loop={"select titleurl,title,writer from phome_ecms_A where writer ='$navinfor[writer]' limit 1",10,24,0}]?$writer='a href="'.$bqr['titleurl'].'" target="_blank">'.$bqr['writer'].'/a>';?>[/e:loop]?php echo $writer;}?>2、第2种写法:
?php$z=$empire->fetch1("select titleurl,title,writer from phome_ecms_B where id ='$navinfor[id]' limit 1"); //调用本篇文章的作者$zz=$empire->fetch1("select writer from {$dbtbpre}ecms_A where writer = '$z[writer]'"); //调用本篇文章的作者与A表的所有作者对比if(empty($zz[writer])) //判断 如果 对比结果为空{?>?=$navinfor['writer']?>?php}else{ //如果判断结果为真 输出?>[e:loop={"select titleurl,title,writer from phome_ecms_A where writer ='$navinfor[writer]' and writer!='' limit 1",10,24,0}]a href="?=$bqr['titleurl']?>" target="_blank">?=$bqr['writer']?>/a>[/e:loop] ?php}?>参考,:52历史,古诗文模板作者
以上方法由办公区教程网编辑摘抄整理自互联网仅供大家参考!
相关文章
本文关键字词:自定义伪静态,栏目目录伪静态,内容目录伪静态,帝国cms伪静态,SEO栏目优化......
2023-05-18 179