DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
codeigniter return last inserted id
$this
->
db
->
insert
(
'posts'
,
$post_data
)
;
$insert_id
=
$this
->
db
->
insert_id
(
)
;
return
$insert_id
;
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#codeigniter
#return
#inserted
#id
ADD COMMENT
Topic
COMMENT
Name
4+6 =
Submit