Created
February 1, 2021 12:12
-
-
Save AnatoliyAkhmatov/d01d91dec81464c0cdabb8064100cb8f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DB::getPdo()->lastInsertId(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Only works on inserts, not on updates. For updates it returns zero.