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!
I'm doing a simple record insert into my MySQL table and immediatly after the record is added I want to use the auto-incremented ID column of the table
How do I get the ID of the record I just created?
I thought about selecting the very last record in the table but this could be dangerous if I have several users all hitting the submit button at the same time.
Could a little advice be offered?
(Yes I know don't eat yellow snow...yadda yadda yadda...you funny blighters)
Last edited by hairyjim on Wed Nov 17, 2004 9:16 am, edited 1 time in total.
Now you see I do agree that RTFM is the way to go but when you have no idea what subject it is under in TFM it makes it a little difficult to find the needle.