Re: Re: last insert id in pear
| From: | electroteque | Date: | Fri, 16 Aug 2002 15:47:55 +0000 |
| Subject: | Re: Re: last insert id in pear | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-2135@lists.php.net to get a copy of this message | ||
i tried that already and got OBJECT as the return
which is why i went and added my own function ;)
"Christian Dickmann" <chrisdicki@gmx.de> wrote in message
news:20020816140136.49648.qmail@pb1.pair.com...
> > reason why i needed last inserted id was for something totally differant
,
> > like syndicating data to another website which is why i needed the
unique
> id
> > i dont care it works, so if anyone needs that function add it to
mysql.php
>
> One is able to use this:
>
> $id = $db->getOne('SELECT LAST_INSERT_ID()');
>
> Christian Dickmann
>
>