Re: mysql_insert_id()
| From: | Chris Lambert - WhiteCrown Networks | Date: | Sat, 07 Jul 2001 19:51:20 +0000 |
| Subject: | Re: mysql_insert_id() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-56667@lists.php.net to get a copy of this message | ||
I've used integer on many occasions with auto_increment, and have had no
problems. mysql_insert_id() returns the unique identifyer of the last record
inserted with mysql_query(). I'm not sure what "MySQL function" you're
referencing as an alternative, but you should be fine with an
integer/auto_increment/insert_id()...
/* Chris Lambert, CTO - chris@whitecrown.net
WhiteCrown Networks - More Than White Hats
Web Application Security - www.whitecrown.net
*/
----- Original Message -----
From: John Meyer <john_meyer@geocities.com>
To: <php-general@lists.php.net>
Sent: Saturday, July 07, 2001 4:41 PM
Subject: [PHP] mysql_insert_id()
| I have been reading about this function and I have a question. The PHP
| manual warns about using it if your AUTO_INCREMENT ID field is a BIGINT.
I
| am using type INTEGER. Am I okay with this one, or should I use the MySQL
| function.
|
| John Meyer
| john_meyer@geocities.com
| Programmer
|
|
| If we didn't have Microsoft, we'd have to blame ourselves for all of our
| programs crashing
|
|
| --
| PHP General Mailing List (http://www.php.net/)
| To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
| For additional commands, e-mail: php-general-help@lists.php.net
| To contact the list administrators, e-mail: php-list-admin@lists.php.net
|
|
|