帝国cms批量更新标题首字母

admin 2024年1月19日12:58:37帝国cms技巧评论1,253 次浏览阅读模式

内容摘要

<?$sql=$empire->query("select id,title from {$dbtbpre}ecms_news where id>5000 order by id limit 1000");while($r=$empire->fetch($sql)){if($r[title]){$zm=GetInfoZ

文章正文

<?

$sql=$empire->query("select id,title from {$dbtbpre}ecms_news where id>5000 order by id limit 1000");

while($r=$empire->fetch($sql)){

if($r[title]){

$zm=GetInfoZm($r[title]);

$empire->query("update {$dbtbpre}ecms_news set infozm='$zm' where id=$r[id] limit 1");

}

}

 

?>

 

代码注释

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2024年1月19日12:58:37
  • 转载请务必保留本文链接:https://anyun.org/a/webtips/ecmstips/2024/0119/17812.html

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: