<?php
$sql="select * from $dbname.product_details";
$result=mysql_query($sql);
if (! $result) {
# code...
die("invalid query to server");
}
if (mysql_num_rows($result) > 0) {
# code...
while ($row=mysql_fetch_assoc($result)) {
# code...
echo "**<big><b><a href='productpage.php'>".$row["pdt_name"]."</a></b></big><br><br>**";
echo "<small>".$row["pdt_description"]."</small><br><br>";
echo "<big>for only ".$row["pdt_price"]."</big><br>";
$path="/img/".$row["pdt_id"].".JPG";
echo "<img src='$path' height='150' width='90' align='center'><br>";
echo "<hr><br><br>";
}
}
?>
This is a part of my PHP code. Each product detail is displayed. The hyperlink, on clicking each product's name, the productdetail.php script should run. Problem now is, how do I pass the product id to the script?
