This is a discussion on DB_DataObject get ID within the PHP Language forums, part of the PHP Programming Forums category; Hello, how to get the ID of the object after calling $mydbdataobject->insert() ? MZ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
mzilenas@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! |