迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發(fā)框架,基于MIT開源許可協(xié)議發(fā)布,免費(fèi)且不限制商業(yè)使用,是免費(fèi)開源的產(chǎn)品,以萬端互聯(lián)為設(shè)計(jì)理念,支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷售客服
1835022288
028-61286886
如何判斷在當(dāng)前自定義模塊(services)的欄目中發(fā)布過文章 {if $ci->db->where('cid', $id)->where('uid', $member.uid)->count_all_results('1_services')} 發(fā)布過,顯示服務(wù)鏈接 {else} 未發(fā)布顯示發(fā)布鏈接 {/if}
Error Number: 1054
Unknown column 'cid' in 'where clause'
SELECT COUNT(*) AS `numrows` FROM `dr_1_services` WHERE `uid` = 13 AND `cid` IS NULL
Filename: /data/home/qxu1608220182/htdocs/cache/templates/templates.mobile.ixhoo.home.services.list.html.mobile..cache.php
Line Number: 17
{if $ci->db->where('catid', $catid)->where('uid', $member.uid)->count_all_results('1_services')} 發(fā)布過,顯示服務(wù)鏈接 {else} 未發(fā)布顯示發(fā)布鏈接 {/if}
如上寫法顯示數(shù)據(jù)庫錯誤
Error Number: 1054
Unknown column 'cid' in 'where clause'
SELECT COUNT(*) AS `numrows` FROM `dr_1_services` WHERE `uid` = 13 AND `cid` IS NULL
Filename: /data/home/qxu1608220182/htdocs/cache/templates/templates.mobile.ixhoo.home.services.list.html.mobile..cache.php
Line Number: 17