Manny -
I'm not quite following your entire train of thought, but if I'm reading correctly, there's no problem with that.
Just get all the fields you want to display, iterate through a FOR or WHILE loop to output the rows, and make each instance of whichever field (e.g. lastname) a link in your PHP-outputted HTML.
As for the display of the rest of the row result, just have the link point to another PHP page, sending along the primary key of that row (it's ideal if you have an auto_increment field to uniquely identify each row). Like this:
<a href='something.php?row_id=<?=$row["row_id"]?>'><?=$row["lastname"]?></a>
Then on that next page, just do a query that grabs all fields from the database where row_id = $row_id (which is passed in on the querystring).
-Jeremy