主頁 >
網站建設 >
建站知識 > Dedecms標簽arclistsg調用單表模型出錯的解決方法
Dedecms標簽arclistsg調用單表模型出錯的解決方法
POST TIME:2020-10-09
使用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'";
|