Tue, January 26, 2021
 
https://devcodepro.comdevcodepro
Home · Latest · Trends  /  PHP
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
 
Share
Posted
Micky
Member since Nov 12, 2016
Total Code Snippets: 5
Total Comments: 2
Location: n/a
Micky snippets
4 years ago, thu, dec 1, 16, 6:27:26
comments: 0 / hits: 3384
PHP
4 years ago, wed, dec 7, 16, 12:37:43
comments: 0 / hits: 4266
4 years ago, thu, mar 2, 17, 6:35:12
comments: 0 / hits: 8097
4 years ago, thu, aug 3, 17, 2:59:59
comments: 0 / hits: 11331
CSS