我正在尝试创建一个包含返回“mf_id”值及其相应“制造商”值的链接的表。我可以一次做一个,但是当我尝试将两者结合起来时,问题开始出现。这是我到目前为止所拥有的:
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td><a href=\"list.php?mf_id&&Manufacturer=" . $row['mf_id'&&'Manufacturer'] . "\">" . $row['Manufacturer'] . "</a></td>";
echo "</tr>";
}
和另一页:
$numb = $_GET['mf_id'];
$name = $_GET['Manufacturer'];
echo "<h1>$name</h1>";
$result=mysql_query("select * from Products where mf_id=$numb");
提前致谢!