首页 > CMS建站 > 织梦DEDE > 正文

织梦标签arclistsg调用单表模型出错如何解决

2021-01-10 23:25:32
字体:
来源:转载
供稿:网友
今天我们在客户开发的过程中使用arclistsg标签时出现“Column 'id' in where clause is ambiguous”的错误, 
解决办法如下
修改代码include\taglib\arclistsg.lib.php
else $gquery = "Select ch.addtable,listfields From `dede_arctype` tp left join `dede_channeltype` ch on ch.id=tp.channeltype where id='$typeid'";

改为

else $gquery = "Select ch.addtable,listfields From `dede_arctype` tp left join `dede_channeltype` ch on ch.id=tp.channeltype where tp.id='$typeid'";
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表