Re: Re: last insert id in pear
| From: | Markus Wolff | Date: | Fri, 16 Aug 2002 16:21:22 +0000 |
| Subject: | Re: Re: last insert id in pear | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-2137@lists.php.net to get a copy of this message | ||
Object??? Did you try to check that with DB::isError()? Maybe you had a
syntax error in your query.
Regards,
Markus
On Sat, 17 Aug 2002 01:47:55 +1000
"electroteque" <daniel@electroteque.org> wrote:
> 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
> >
> >
>
>
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
Markus Wolff <wolff@21st.de>