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

内容摘要
<?$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");

}

}

 

?>

 

代码注释

作者:喵哥笔记

IDC笔记

学的不仅是技术,更是梦想!