Re: Last Record INSERT
| From: | Stuart Dallas | Date: | Wed, 26 Jun 2013 18:03:09 +0000 |
| Subject: | Re: Last Record INSERT | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-321505@lists.php.net to get a copy of this message | ||
On Wednesday, 26 June 2013 at 19:01, Tedd Sperling wrote:
> On Jun 26, 2013, at 1:56 PM, Stuart Dallas <stuart@3ft9.com (mailto:stuart@3ft9.com)>
> wrote:
> > On Wednesday, 26 June 2013 at 18:39, Tedd Sperling wrote:
> > > Let me add, currently I am inserting an email address into a database.
> > >
> > > To find which record was created, I ask for the record number (ID) back.
> > >
> > > I am asking simply because mysql_insert_id() is deprecated.
>
> Now you tell me. :-)
>
The whole mysql module has been deprecated. The recommended module is now either mysqli or PDO
depending on your requirements. Moving to mysqli from mysql will probably be the less painful route.
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/