Accessing the database directly
Permalink
For my custom block, I am accessing my own tables in the database using C5's extraction layer via $db = Loader::db();
Is there a built-in function to give me the ID of the last acted-on (esp inserted) record?
Is there a built-in function to give me the ID of the last acted-on (esp inserted) record?
$r = $db->query($q);
...would contain something of use. $r is an associative array, but sadly no elements give me the affected record ID.