Thu, December 2, 2021
 
https://devcodepro.comdevcodepro
X
InterServer Web Hosting and VPS
Home · Latest · Trends
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: 9825  / 5 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
Login with Google
 
Share
Posted
Micky
Member since Nov 12, 2016
Total Code Snippets: 5
Total Comments: 2
Location: n/a
Micky snippets
5 years ago, thu, dec 1, 16, 6:27:26
comments: 0 / hits: 4020
PHP
5 years ago, wed, dec 7, 16, 12:37:43
comments: 0 / hits: 5334
5 years ago, thu, mar 2, 17, 6:35:12
comments: 0 / hits: 9665
4 years ago, thu, aug 3, 17, 2:59:59
comments: 0 / hits: 13958
CSS