For generating page dynamically you can use $_GET['id']
for getting the id of the table, from where you are gonna fetch the data. Now put a get query after the link you wanna use,
It should look like this
Index.php?id=2
It is gonna fetch all the data from the second row.
But if you are like making a admin board or anything that is gonna modify the database do not use this, use secure login with user password verification,
Be sure to sanitize the id
as this is going to used for getting the data in the database.