Re: PEAR::DB and mysql_insert_id()
| From: | Justin Patrin | Date: | Mon, 04 Oct 2004 17:09:25 +0000 |
| Subject: | Re: PEAR::DB and mysql_insert_id() | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-14749@lists.php.net to get a copy of this message | ||
On Mon, 4 Oct 2004 15:50:03 +0200, Mos <mos_fr@yahoo.fr> wrote:
> Hi everybody !
>
> Is there a class/function to have something which lookx like
> mysql_insert_id() in PHP when using PEAR:/DB classes ?
>
> I mean how find the next autoincrement id in a table with the PEAR:/DB class
> ? Or should I code a function/class to do that in all the databases
> supported through PEAR:/DB ?
>
This is asked fairly often on this list try searching the archives or
looking here: http://www.reversefold.com/tikiwiki/tiki-index.php?page=PHPFAQs#id225251
--
paperCrane --Justin Patrin--