require_once 'secure/config.php'; require_once 'inc/cart-functions.php'; require_once 'openinfo.php'; $_SESSION['shop_return_url'] = $_SERVER['REQUEST_URI']; $catId = (isset($_GET['c']) && $_GET['c'] != '1') ? $_GET['c'] : 0; $pdId = (isset($_GET['p']) && $_GET['p'] != '') ? $_GET['p'] : 0; // if a product id is set add the product name // to the page title but if the product id is not // present check if a category id exist in the query string // and add the category name to the page title if (isset($_GET['id']) && (int)$_GET['id'] > 0) { // if it has a id $pdId = (int)$_GET['id']; $sql = "SELECT Item FROM Embroidery_Items WHERE ID = $pdId"; $result = dbQuery($sql); $row = dbFetchAssoc($result); $pageKey = $row['Item']; } else if (isset($_GET['category']) && $_GET['category'] ) { // if there is a category $catId = $_GET['category']; $pageKey = ucwords(str_replace("-"," ",$catId)); } $pageTitle ="$pageKey Embroidery Designs Library"; $pageDesc ="Specialist and Unique Catalogue of Machine Embroidery Patterns. $pageTitle major brand professional digitized formats Brother PES Janome JEF Pfaff VP3 Viking Husqvarna HUS Singer and Bernina designs."; include("inc/header.php"); ?>
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|