19
Get last insert MySQL id using ADODB
Getting a MySQL last MySQL id from an ADODB conn
$DB->Execute('INSERT INTO mytable(posts) VALUES('.$DB->qstr($title).')');
$get_last_id = $DB->insert_id();
echo $get_last_id;
rated 21 times
(20)
(1)
comments: 1 / hits: 8883
/ 4 years ago, thu, dec 8, 16, 06:21:29
More From
» PHP
Comments
There are no comments for this Snippet yet
Only authorized users can post. Please sign in first, or register a free account