Hello. I have such a problem. I need to add a record to the database and at the same time find out immediately what ID value will be given to it by the auto-increment in the database.
if (isset($data['send_album'])) { $tr = R::dispense('lyrics'); $tr->name = "newName"; R::store($tr); } I use RedBeanPHP to work, so I can’t figure out how to implement it using the tools.