//This page displays the details for a particular product. if (is_numeric ($_GET['pid'])) {//Make sure there's a product ID. require_once ('mysql_connect.php'); //Connect to the database. $query = "SELECT * FROM products WHERE products.pid = ".$_GET['pid']; $result = mysql_query ($query); $row = mysql_fetch_array ($result, MYSQL_ASSOC); mysql_close(); //Close the database connection. //Set the page title and include the HTML header. $page_title = $row['name']; include_once ('includes/header.php'); //Display a header. echo "