topical media & game development
professional-search-14-seophp-product.php / php
<?php
// load the catalog library
require_once 'include/catalog.inc.php';
// load the URL factory
require_once 'include/url_factory.inc.php';
// load the SimpleGeoTarget library
require_once 'include/simple_geo_target.inc.php';
// load the URL redirect library
require_once 'include/url_redirect.inc.php';
// retrieve the product details
_GET['product_id'];
product_id);
products[0];
// retrieve the category details and create the category link
_GET['category_id'];
category_id);
categories[0];
category['name'], proper_url = make_category_product_url(category_id,
product_id);
fix_category_product_url(brand_id = brands = Brands::get(brand = brand_image_url = make_media_url(brand['name'], 'jpg');
// send a 404 if the product or category does not exist
if (!category) {
header("HTTP/1.0 404 Not Found");
exit();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title><?php echo product['name'] ?> -
<a href="/">Cookie Ogre Warehouse</a>
</h1>
<!-- Display the product description -->
<p><?php echo brand['name']; ?>.
<br /><img src="<?php echo product['price'] * 1.17 . ' CAD';
else
echo category_url; ?>">
<?php echo
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.