我想要做的是得到它,因此每行回显都有一个不同的超链接地址。代码如下:
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>";