Show us an example of what you've got and how you'd like it to work.
Suposedly you've got this statement:
echo "<tr><td>$memberId</td></tr>";
You need script that shows info for that user (e.g. stats.php)
echo "<tr><td>$memberId</td><td><a href=\"stats.php?id=$memberId\">stats</a></td></tr>";