联系官方销售客服
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();