By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,590 Members | 663 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,590 IT Pros & Developers. It's quick & easy.

DB_DataObject get ID

P: n/a
Hello,

how to get the ID of the object after calling $mydbdataobject->insert()
?

MZ

Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
mz******@gmail.com wrote:
how to get the ID of the object after calling
$mydbdataobject->insert() ?


I'd do

$mydbdataobject->last_insert_id()

or similar, depending on the state of mind I had when coding the class.
--
Mail to my "From:" address is readable by all at http://www.dodgeit.com/
== ** ## !! ------------------------------------------------ !! ## ** ==
TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address>)
may bypass my spam filter. If it does, I may reply from another address!
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.