【发布时间】:2012-05-10 06:25:36
【问题描述】:
我想要做的是得到它,因此每行回显都有一个不同的超链接地址。代码如下:
echo "<table border='1' cellpadding='10'>";
echo "<tr> <th>Product Name</th> <th>Product Description</th> <th>Product Price</th> <th>Product Image</th> <th>View Product Details</th></tr>";
while($row = mysql_fetch_array( $result )) {
echo "<tr>";
echo '<td>' . $row['Product_Name'] . '</td>';
echo '<td>' . $row['Product_Description'] . '</td>';
echo '<td>' . $row['Product_Price'] . '</td>';
echo '<td><a href="print_pic.php">Picture Enlarge</a></td>';
echo '<td><a href="phone1.php?id=1">View Details</a></td>';
echo "</tr>";
}
echo "</table>";
【问题讨论】:
-
超链接中的内容是什么?行号?
-
另外,你要超链接到什么? ...虽然您可以在整行周围放置一个标签,但这是您想要做的吗?
标签: php html mysql hyperlink html-table