<a href="anotherpage.PHP?id=<?PHP echo $row['user_id']?>" ><button>View Details</button></a>
这将带您到另一个页面。使用get方法将id转换为PHP变量。
$userId = $_GET['id'];
$userResult = MysqL_query("SELECT * FROM userTable WHERE user_id = ".$userId);
PHP添加按钮以查看整个记录MySQL的所有内容
<a href="anotherpage.PHP?id=<?PHP echo $row['user_id']?>" ><button>View Details</button></a>
这将带您到另一个页面。使用get方法将id转换为PHP变量。
$userId = $_GET['id'];
$userResult = MysqL_query("SELECT * FROM userTable WHERE user_id = ".$userId);