聯(lián)系官方銷售客服
1835022288
028-61286886
模塊表單采集入庫問題,更新副表是,一直提示必須用 set?
$rt = \Phpcmf\Service::M()->table_site("form_表單名")->insert($data); $data['tableid'] = floor($rt['code']/50000); $tableid = floor($rt['code']/50000); \Phpcmf\Service::M()->table_site("form_表單名")->update($rt['code'], ['tableid' => $tableid]);
就算換下面的寫法也是這么提示 You must use the "set" method to update an entry.
$db = \Phpcmf\Service::M()->db->table(SITE_ID."_news_form_表單名"); $db->where('id', $rt['code']); $db->set('tableid', $tableid); $db->update();
....