Getting the Primary Id of the last inserted row I am using PHP and MYSQL to insert rows into a table and after inserting a row I need to get the PK of the inserted row. If you have solution for getting the PK of the immediately inserted row, I would like to know it or if you can fix my problem I would appreciate your technical help. For PC I used this connect link: $link = mysql_connect('localhost', 'root', ''); if (!$link) { die('Could not connect: ' ....