Fri, October 30, 2020, 12:37:32
 
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: 8514  / 4 years ago, thu, dec 8, 2016, 06:21:29
More From » PHP
 

Comments

There are no comments for this Snippet yet
Username
 
Your Comment
 
Share
Snippets
Count number of rows in the record set
4 years ago, thu, dec 1, 2016
Refresh html div content with jQuery
4 years ago, wed, dec 7, 2016
Syntax code highlighting with JavaScript code prettifier for phpBB 3.2
4 years ago, thu, mar 2, 2017
Bootstrap 4 button remove focus outline border
3 years ago, thu, aug 3, 2017
Posted
Micky

Micky

Member since Nov 12, 2016
Total Code Snippets: 5
Total Comments: 2
Location: n/a
Following
User not following anyone yet.