HooLIGUN 10 10/08/2020 08:24 AM Добрый день, подскажите, как получить AUTO_INCREMENT в запросе IPB? Выполняю, например так $sql_addlog="INSERT INTO`log` (id,event,date) VALUES ("Здесь InsertID",'"log","158131481" )"; $this->DB->query($sql_addlog); Share this post Link to post
newbie 1,721 10/08/2020 09:21 AM $insertId = $this->DB->getInsertId(); 1 Share this post Link to post
siv1987 2,623 10/08/2020 01:41 PM $this->DB->insert('log', array('id' => $last_id, 'event' => 'log', 'date' => 158131481)); 1 Share this post Link to post