Re: mysql auto increment question
| From: | Pavel Jartsev | Date: | Thu, 25 Jan 2001 08:14:08 +0000 |
| Subject: | Re: mysql auto increment question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-36578@lists.php.net to get a copy of this message | ||
David Banning wrote:
>
> I am working with php-mysql
> and am inserting into mysql using a NULL value,
> which allows mysql to auto-insert (increment)
> a number - how could I find out what the value was
> mysql inserted, say on the next line of code after the insert?
http://www.php.net/manual/en/function.mysql-insert-id.php
--
Pavel a.k.a. Papi