Re: Chose ID from Table ?
| From: | Dobromir Velev | Date: | Fri, 13 Jul 2001 11:29:52 +0000 |
| Subject: | Re: Chose ID from Table ? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-10379@lists.php.net to get a copy of this message | ||
Hi,
If you're using MySQL you could try with mysql_insert_id()
http://www.php.net/manual/en/function.mysql-insert-id.php
Dobromir Velev
-----Original Message-----
From: Andreas Iwanowski <aimk@onlinehome.de>
To: php-db@lists.php.net <php-db@lists.php.net>
Date: Friday, July 13, 2001 2:12 PM
Subject: [PHP-DB] Chose ID from Table ?
>Hello
>How can i do this here:
>I have a script, where i insert informations into a table.
>I now want now to read out the ID those informations got.
>
>Hot to do that ?
>
>--
>
>
>mfg, andy
>
>-----------------------------------------
>In Memoriam - Jaques
>www.amdclan.de/jaques
>------------------------------------------
>
>
>
>--
>PHP Database Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
>For additional commands, e-mail: php-db-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>