\n"; $catLayout .= $itemNumber."
\n".$name."
query($catQ);
if(!$catR) {
$msg = $db->error ;
$msg .= "\r\n$query";
mail($adminEmail, $_SERVER["PHP_SELF"] .': cats for nav failed', $msg);
die("an error occured:
".$msg."
Admin has been notified");
}
//gather all products in this category
$query ="SELECT categories.id AS catID, categories.name, categories.description, products.id AS prodID, products.name, products.itemNumber, products.imgType
FROM lookupCat2Prods
LEFT JOIN products ON lookupCat2Prods.prodID = products.id
LEFT JOIN categories ON lookupCat2Prods.catID = categories.id
WHERE lookupCat2Prods.catID = $catID AND lookupCat2Prods.deleted IS NULL AND products.deleted IS NULL AND categories.deleted IS NULL
ORDER BY products.itemNumber";
$results = $db->query($query);
if(!$results) {
$msg = $db->error ;
$msg .= "\r\n$query";
mail($adminEmail, $_SERVER["PHP_SELF"] .': prods and cat find failed', $msg);
die("an error occured:
".$msg."
Admin has been notified");
}
$navVar = "catalog";
$navVarSub = NULL;
$metaTitle = $genMetaTitle;
$metaDesc = $genMetaDesc;
require("header.php");
?>
\n".$name."