Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGet insert_id in v4? #181
Get insert_id in v4? #181
Comments
|
You are getting the correct error, they protected, no direct public access, try It's a magic method to access any of the method properties. Prefix either UPDATE after reviewing of the code, it's a @todo about removing So try |
|
Thanks, that worked |
Hi,
In previous versions, I can access the insert_id like this:
$db->insert_id;But in version 4, I am getting the error:
Please help.