QUOTE
If you set a colum on auto-incement it will generate a unique number in that cell. It will allways be the highest number possible in the table. So if you want it back in php, just select the row with the highest number in the auto-incement cell and you have you latest input.
Watch out for race conditions. If a second process creates another row, then the one you created won't be the one with the highest number any longer.