Welcome Guest, Not a member yet? Register   Sign In
can someone show me function insert_id(); in codeinger4 ?
#3

(This post was last modified: 10-25-2022, 11:20 PM by startup.)

(10-25-2022, 10:33 PM)kenjis Wrote: https://codeigniter4.github.io/CodeIgnit...b-insertid

i use insertId follow above link it info

Call to undefinedmethod CodeIgniter\Database\MySQLi\Builder::insertID() 
Call to undefined method CodeIgniter\Database\MySQLi\Builder::insertID()
PHP Code:
public function Add($table,$data){
        if(isset($data) && $data != NULL){
            $builder $this->db->table($table);
            $builder->insert($data);
            return $builder->insertID();
        }
    
Reply


Messages In This Thread
RE: can someone show me function insert_id(); in codeinger4 ? - by startup - 10-25-2022, 11:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB