Welcome Guest, Not a member yet? Register   Sign In
Behaviour of getInsertID() when using save()
#2

getInsertId() is in system/BaseModel.php

This is all that I can find on it.

PHP Code:
    /**
    * Returns last insert ID or 0.
    *
    * @return int|string
    */
    public function getInsertID()
    {
        return is_numeric($this->insertID) ? (int) $this->insertID $this->insertID;
    
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Behaviour of getInsertID() when using save() - by InsiteFX - 10-14-2024, 11:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB