I just zoomed thru your post but al lyou need to do is a variable url link....
like this
<a href="profile.php?user=<? echo $username; ?>">User Joe</a>
so when you pull all the data out from the database on your members.php page just have it loop thru and create the link above...
example:
<?
// Database Conenction String ------Start------
$connect = mysql_connect($hip, $duser, $dpass) or die ("Couldnt connect");
$db = mysql_select_db($dname, $connect) or die ("Couldnt open Database");
$sql = "select * from $table WHERE $locate = '$stripit' Order by $id_it ASC LIMIT $onset2,12";
$sql_result = mysql_query($sql, $connect) or die ("Access Denied!");
$count = mysql_num_rows($sql_result);
// Database Connection String -------End-------
while ($row = mysql_fetch_array($sql_result)){
$username = $row["pname"];
?>
<a href="profile.php?user=<? echo $username; ?>"><? echo $username; ?></a>
<?
}
?>
then for your profile.php page
just do grab the variable user from the url string and place it in your sql statement like this
example:
<?
// Database Conenction String ------Start------
$connect = mysql_connect($hip, $duser, $dpass) or die ("Couldnt connect");
$db = mysql_select_db($dname, $connect) or die ("Couldnt open Database");
$sql = "select * from table WHERE username = '".$_REQUEST["user"]."'";
$sql_result = mysql_query($sql, $connect) or die ("Access Denied!");
$count = mysql_num_rows($sql_result);
// Database Connection String -------End-------
while ($row = mysql_fetch_array($sql_result)){
$username = $row["pname"];
// your code here
}
?>