I work with php+mysql. I have a table(1) with autoincrement field and it is linked to other table(2). I have to insert row to table(1). So when i insert row i have to know the incremented number to insert appropriate information to another table. What is best way to do that. Using minimum num of queries? Table is multiuser accessible.