Last active
August 29, 2015 14:16
-
-
Save eklect/f48cc6f76f3e653ede92 to your computer and use it in GitHub Desktop.
Concrete 5.6 → Getting last insert ID from Database
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
<?php | |
global $u; | |
$db = Loader::db(); | |
$a = "INSERT INTO exampleTable(uID,completed) VALUES('$u->uID','false')"; | |
$b = $db->query($a); | |
$c = $db->insert_ID(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The case are sensitive in insert_id, its not Insert_ID();