我有一个HTML表格,通过PHP以8个不同的值从一个mysql数据库表填充。 我需要打开第二个页面并将其中的任意一个传递给我,以便从数据库中查询另一个值。 到目前为止,我可以通过href打开第二页,但我可以解决参数问题。 任何人都可以帮助我吗?根据html表格数据打开网页
代码:
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<?php
include "ligabd.php";//connects to the server
if(!$l)
{
die("Ligação sem sucesso: ".mysql_error());
}
else
{
$query="SELECT escalao FROM escaloes ORDER BY idescaloes ASC";
$result= mysqli_query($l, $query);
?>
<link href="style.css" rel="stylesheet" type="text/css" />
<table id="t01" align="center">
<br>
<br>
<br>
<br>
<tr>
<td align="center">Escalões</td>
</tr>
<?php
while ($record= mysqli_fetch_array($result))
{
$r=$record['escalao'];
?>
<tr>
<td>
<a href="pag_escalao_mensalidade.php?escalao=">
<?php
echo $record['escalao'];
?>
</a>
</td>
</tr>
<?php
}
}
?>
</table>
</body>
的可能的复制[简单的PHP分页](http://stackoverflow.com/questions/3705318/simple-php-pagination ) – Clarkie