<a href="anotherpage.php?id=<?php echo $row['user_id']?>" ><button>View Details</button></a>
这将带您到另一个页面。使用get方法将id转换为php变量。
$userId = $_GET['id'];
现在,使用sql查询为单个用户从数据库中获取所有数据。
$userResult = mysql_query("SELECt * FROM userTable WHERe user_id = ".$userId);


