DB_Object->insert() not returning ID
| From: | Ken Restivo | Date: | Mon, 15 Nov 2004 03:36:41 +0000 |
| Subject: | DB_Object->insert() not returning ID | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-15499@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
One more: inserts succeed but always return 1 as an ID.
I supposed I can hack around this with a raw query for last_insert_id(), but the docs say insert()
should return this.
- -ken
- --
- ---------------
The world's most affordable web hosting.
http://www.nearlyfreespeech.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFBmCRJe8HF+6xeOIcRAvFWAKCQyoNDpip8EAF7oauBEFzO9eH+gQCg8xnj
BynUdV3B5I5Ep3fyy2AYNu4=
=FNZh
-----END PGP SIGNATURE-----