Getting an Auto Increment ID

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
carleihar
Forum Commoner
Posts: 36
Joined: Fri Nov 13, 2009 5:59 pm

Getting an Auto Increment ID

Post by carleihar »

I have a page that inserts a new record into a table with an auto increment primary key. Using this primary key, I would like to insert similar information into different tables. How would I get that ID?
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Getting an Auto Increment ID

Post by Eran »

Post Reply