Re: mysql - get actual row
| From: | Tom Woody | Date: | Tue, 10 Jun 2003 22:24:03 +0000 |
| Subject: | Re: mysql - get actual row | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-150976@lists.php.net to get a copy of this message | ||
On Tue, 2003-06-10 at 17:18, Harry.de wrote:
> Hi,
> if i insert into a mysql table a row e.g.
> mysql_query("INSERT into TEST (testfield) VALUES ('This is a test')");
> and the first field is an auto increment (e.g. NR),
> how can i get the value of the auto increment NR i've actually inserted?
>
mysql_insert_id()
in the future a search of the archive first, or a search of php.net
would have found this.
--
Tom
In a world without boundaries why
do we need Gates and Windows?