SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: auto_increment
-
Jan 29, 2002, 21:30 #1
- Join Date
- Apr 2001
- Location
- BC, Canada
- Posts
- 630
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
auto_increment
Is there a way to get the index number of an entry that was just entered into a table when it is set onto auto_increment. Usualy I have to query the db with a select statement just to find out what he last unique id number was.
I heard something about a function that automaticly spits it our for u.. is this true?
-
Jan 29, 2002, 21:36 #2
- Join Date
- Aug 2000
- Location
- San Diego, CA
- Posts
- 5,460
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
mysql_insert_id();
http://www.php.net/mysql_insert_idPlease don't PM me with questions.
Use the forums, that is what they are here for.
Bookmarks