泉er哥 发表于 2015-3-30 18:02:49

更新 decimal 的字段 提示 could not be converted to string

money 是 decimal 类型
$this->db->set('gz_sf_money',$money,FALSE);
//$data = array('gz_sf_money' => "$money"); monery会被转义,此方法不可用。
$this->db->where('uniqid',$uniqid);
return $this->db->update($this->table);

这两种方式都不行,提示 could not be converted to string 怎么写才对!

页: [1]
查看完整版本: 更新 decimal 的字段 提示 could not be converted to string