Connected to MySQL
"; mysql_select_db("66_simplycurt") or die(mysql_error()); //echo "Connected to Database"; require('cartbar.php'); echo"
"; require('nav.php'); $itemno = $_GET[id]; //the product id from the URL $sql="SELECT * FROM garment WHERE id = '".$itemno."'"; $result = mysql_query($sql); while($row = mysql_fetch_array($result)){ echo "
"; $product_id=$row['id']; echo "

".$row['name']."

"; echo "

$".$row['price']."

"; echo $row['description']; echo "add to cart"; echo "
"; echo"
"; echo $row['img1']; echo "
"; } //endwhile require('footer.php'); echo"
"; ?>