这是我在model.php中的函数
function add_user($data, $table){
$this->db->trans_start();
$insert_id = $this->db->insert($table, $data);
$this->db->insert_id();
$this->db->trans_complete();
return $insert_id;
}
如何在其他函数中获取 $insert_id 的值 *抱歉我的英语不好
心有法竹
呼啦一阵风
相关分类