$hostname = "localhost"; $username = "giftss_nitro"; $password = "iucpxleps"; $dbName = "giftss_"; MYSQL_CONNECT($hostname, $username, $password) OR DIE("Unable to connect to database"); mysql_select_db("$dbName") or die("Unable to select database"); $nav = $_SERVER["REQUEST_URI"]; $script = $_SERVER["SCRIPT_NAME"]; $nav = ereg_replace("^$script", "", $nav); $nav = str_replace('.html','',$nav); $vars = explode("/", $nav); $sku = $vars[1]; $sku = str_replace('-',' ',$sku); $query1 = mysql_query("SELECT * FROM coffee where name = '$sku'"); if (mysql_num_rows($query1) < 1) { header("HTTP/1.0 404 Not Found"); include("404.php"); } $row1 = mysql_fetch_array($query1); ?>
online."> coffee shop, coffee table, coffee mug, coffee cup, gourmet coffee, coffee grinder, coffee pod, coffee pot, specialty coffee, flavored coffee, glass coffee table, organic coffee, wholesale coffee, coffee gift basket, square coffee table, personalized coffee mug, travel coffee mug, gourmet coffee bean, coffee supply, healthy coffee, coffee tables and end tables, square coffee tables, wrought iron coffee tables, contemporary coffee tables, modern coffee tables, glass coffee tables, unique coffee tables, coffee and end tables, glass coffee tables sets, storage coffee tables, lift top coffee tables, small coffee tables ">
Personalized Coffee Favors$query = mysql_query("SELECT * from coffee where name = '$sku'"); while ($row = mysql_fetch_array($query)) { include("prod.php"); } ?> |