联系官方销售客服
1835022288
028-61286886
插入数据时提示数据类型必须是数组等……但是我的数据确实是数组啊!而且错误提示里,数据也是对得上的!
请指点一下,是哪里错误了
foreach ($row_data as $key => $da){ // 插入主表 $rt = \Phpcmf\Service::M()->table_site("pers")->insert($da); }
Argument 1 passed to CodeIgniter\Database\BaseBuilder::insert() must be of the type array or null, int given, called in D:\123www\tm.com\dayrui\Fcms\Core\Model.php on line 196
CRITICAL - 2020-06-08 14:37:43 --> Argument 1 passed to CodeIgniter\Database\BaseBuilder::insert() must be of the type array or null, int given, called in D:\123www\tm.com\dayrui\Fcms\Core\Model.php on line 196 # http://tm.com/admin.php?s=excelpo&c=home&m=index # INSERT INTO `dr_1_pers` (`riqi`, `zd`, `proid`, `fks`, `jyje`, `zfjs`, `zhl`, `kdj`, `ssrs`, `scrs`, `jgrs`, `uvjz`, `mjs`, `sszb`, `scl`, `jgl`, `tableid`, `catid`, `uid`, `author`, `inputtime`) VALUES (1587139200, 'Pc', '567318017044', 0, 0, 0, 0, '-', 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 'admin', 1587139200)