I need to use the received key of one insert, in another insert. Is this possible with MySQL?
mysql_insert_id returns the id of the last inserted record, you can use this
Gets the identifier generated for the AUTO_INCREMENT column by the previous request (usually INSERT).