all you have to do is change this line
$result = @("SELECT * FROM members");
to something like this:
$result = @("SELECT * FROM members WHERE id = $id");
id is the field in your database which is the member's id.
$id is the value of that member id you want.
you can give $id a value a number of different ways...
either a form or through a querystring.
querystring example:
the 'view' link would be like this
User1 (view) | file.php?member_id=1
User1 (view) | file.php?member_id=2
etc ...
then in you would get the value like this in file.php
$id = $_REQUEST['member_id'];
form example...
<form method="post" action="file.php">
<select name"member_id">
<option value="1">User1</option>
<option value="2">User2</option>
</select>
</form>
then in your file.php you would do this:
$id = $_POST['member_id'];