Have 2 pages.
One page will take a list of IDs and list them. It'll also attach the ID to the link, as so:
<a href="details.php?id=12345">John Doe</a>
And then, your second page, details.php, will take that id and query the database for details and display it to the user.
Diego