[eluser]codemonkey[/eluser]
See title.
I don't think insert_id() works with $this->db->update()
Am I wrong? Is there another way?
Thanks
[eluser]GrahamDj28[/eluser]
If you update a record, then the ID is already known.
How else would you update the correct record?
And as the name implies, it returns the record ID on an insert. Not on an update
[eluser]GrahamDj28[/eluser]
Well, if you want to make sure that a value is unique you can set your DB table column to unique.
Inserting the value for a second time will then fail. So the executed query should return FALSE.
Could you maybe explain what you actually want to do?