名前をリンクとして取得するとはどういう意味ですか? 名前と一緒に取得されるデータベースにリンク フィールドがありますか?
これは、漠然とした質問から私が理解したことに基づく解決策です。
データベースから取得した名前があります。また、データベースから ID を取得します。これらの名前を別の PHP ページへのリンクとして表示します。php ページに user.php という名前を付けます。したがって、リンクは次のようになります。
$name = "You go this name from USER TABLE";
$id = "YOU GOT THIS ID FROM USER TABLE";
<a href="/user.php?userID=<?php echo $id ?>">$name</a>
user.php で、ID を取得します。
$name = $_GET["userID"]; // make sure you do some parsing to avoid sql injection
// Retrieve all the information about this guy like email address etc from the database
// put everything into a form with a Confirm button which when clicked will mail it to the individual
// I think you should be able to figure out the mail part.