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"); ?>
Reyma offers many sizes for food service disposable foam and plastic products
num_rows; $counter = 0; while ($catRow = $catR->fetch_assoc()) { $id = $catRow["id"]; $catName = stripslashes($catRow["name"]); $catDesc = $catRow["description"]; //leave as slashed for proper href title display $catColor = "#".$catRow["daColor"]; $catLayout = NULL; $cssLeft = intval($counter * $catWidth); $catWidth = intval(1000 / $catCount); $counter++; if ($counter == $catCount) $catWidth = $catWidth + (1000 - ($catWidth * $catCount)); //to capture any remaining extra pixels //set the main color for the page, based on the category if($id == $catID) { $mainCatColor = $catColor; $catHeader = $catRow["imgName"]; } $catLayout .= "\t
".$catName."
\n"; echo "\t\t\t".$catLayout; } $catR->free(); ?>
food service disposable foam and plastic products
food service plastic products global distribution
fetch_row()) { $cellCount++; //SELECT categories.id AS catID, categories.name, categories.description, products.id AS prodID, products.name, products.itemNumber, products.imgType $catID = $row[0]; $catName = stripslashes($row[1]); $catDesc = stripslashes($row[2]); $prodID = $row[3]; $name = stripslashes($row[4]); $itemNumber = $row[5]; $imgType = $row[6]; $img = $itemNumber.".".$imgType; $catLayout = NULL; $daLink = ""; if (is_file($catPath.$img)) $prodIMG = $prodImgPath.$img; else $prodIMG = $prodImgPath."noImage.png"; if ($cellCount == 1) $catLayout .= "
\n\t
"; else { $cssLeft = intval(($cellCount - 1) * 180); $catLayout .= "\t
"; } $catLayout .= $daLink."\"".$name."\"
\n"; $catLayout .= $itemNumber."

\n".$name."

\n"; if ($cellCount == 5) { $catLayout .= "
\n"; $cellCount = 0; } echo "\t\t\t".$catLayout; } $results->free(); if ($cellCount) echo "
"; ?>