Hence $this->db->insert_id()

The insert ID number when performing database inserts.

And there is no auto incremented id in your database

TO check data is insert or not use

Displays the number of affected rows, when doing “write” type queries (insert, update, etc.).

Models

Read http://www.codeigniter.com/user_guide/database/helpers.html

0 0 vote
Article Rating
Subscribe
提醒
guest
0 评论
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x