you just make a href to the index. <a href="index.php?id=34">User XYZ</a>
Then you can make a sql query like in the index.php script:
$sql = "SELECT e-gold FROM tablename WHERE userid = $_GET['ID']";
that should return you the e-gold column content in you database. (of the user with the id 34)
ali