获取CI执行数据插入影响的行数

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

You Might Also Like
发表评论

%d 博主赞过: