mysql_insert_id()
link

cmq una breve ricerca sul sito ... era stata fatta una discussione 2 gg fà!

caio