Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
HooLIGUN

Insert_ID() в IPB

Recommended Posts

Добрый день, подскажите, как получить 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
$insertId = $this->DB->getInsertId();

 

  • Upvote 1

Share this post


Link to post
$this->DB->insert('log', array('id' => $last_id, 'event' => 'log', 'date' => 158131481));

 

  • Upvote 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...