帝国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]){$z……
以下代码加到自定义页面即可运行生成新闻标题的首字母
<?$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");}}?>
- 上一篇
帝国CMS 批量修改字段内容sql语句
在后台系统-执行sql语句update phome_ecms_download set titleurl=replace(titleurl,'http://www.daixiao360.cn','http://127.0.0.1');update phome_ecms_download set titlepic=replace(titlepic,'http://www.daixi
- 下一篇
帝国CMS下载txt文件浏览器带下载进度显示
帝国默认TXT格式的文件是不可以下载,不修改源文件他会直接打开方法TXT弹出下载:测试版本:帝国CMS7.0功能位置:后台->其他管理->下载模型管理->管理地址前缀相关函数:e/class/DownSysFun.php DoTypeForDownurl() , QDownLoa