MySQL Forums
Forum List  »  PHP

Re: mysqli class
Posted by: Rick James
Date: March 15, 2014 01:55PM

> I need to use the insert_id on the page that called the class, not in the class itself.

That's a straightforward "getter" method that you need to add to your class.

public function insert_id()
{
return $this->link->insert_id();
}

(or maybe I am really confused about your Class structure)

Options: ReplyQuote


Subject
Written By
Posted
March 06, 2014 11:25AM
March 08, 2014 01:10PM
March 11, 2014 07:16AM
March 12, 2014 10:34PM
March 13, 2014 07:24AM
Re: mysqli class
March 15, 2014 01:55PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.