I'm creating a class mapped to the functions of a guestbook.  Each guestbook
submission becomes an entry in a db table.  I am using the DB Pear class.

I'm new to PHP and my question is this:

What is the best way to create a method that adds a new guestbook entry and
returns its auto_increment id.  I could use an "Insert" statement and then a
"Select" statement to find out what id was added for the record, but that
seems a little inefficient.  Any ideas?

Thanks for any help.  Much appreciated,


PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to