Shame on me…
I looked at the user guide and the first function is $this->db->insert_id();
This also works with activerecord inserts…
EDIT: I updated the link
More Related Contents:
- CodeIgniter only executing default controller
- How print in Jquery / Datatables [closed]
- What is the right way to maintain a “version for the server” – with only config files changed, in Git?
- Sending email with gmail smtp with codeigniter email library
- How to remove “index.php” in codeigniter’s path
- CodeIgniter: Unable to connect to your database server using the provided settings Error Message
- How to set proper codeigniter base url?
- CodeIgniter: “The filetype you are attempting to upload is not allowed.”
- How to prevent the “Confirm Form Resubmission” dialog?
- Find total number of results in mySQL query with offset+limit
- Redirect with CodeIgniter
- How to create Codeigniter batch insert array
- GMail fsockopen(): SSL operation failed error with Codeigniter and XAMPP
- CodeIgniter MSSQL connection
- codeigniter, result() vs. result_array()
- Integrating Mailjet API v3 wrapper as Codeigniter library
- Codeigniter Routes regex – using dashes in controller/method names
- what is the difference between site_url() and base_url()?
- What are the differences between backtick and single quote? Can I use IF statement in a query as above?
- Codeigniter multiple file upload messes file extension
- Codeigniter send email with attach file
- CodeIgniter – how to catch DB errors?
- How to set time zone in codeigniter?
- Handling PUT/DELETE arguments in PHP
- Inserting NOW() into Database with CodeIgniter’s Active Record
- Object of class stdClass could not be converted to string
- How to integrate PHPMailer with Codeigniter 3
- How to stop GD2 from washing away the colors upon resizing images?
- .htaccess Redirect non-WWW to WWW preserving URI string
- How can I have CodeIgniter load specific pages using SSL?