you would need to create a link to the detail page that passes the users ID through a querystring variable, you will get the user ID from the recordset on the apge:
<a href="usersDetails.php?id=<?php echo $recordsetName['UserID']; ?>">user detail</a>
on the detail page, create a recordset that filters the users table on the id quesrystring variable being passed.
this is referred to a master detail page set, see the following for more details:
WScbb6b82af5544594822510a94ae8d65-78b7a.html