Home ›
if ($saved_category_id || !$saved_brand_id)
{
if ($saved_category_id)
$q = "SELECT * from NG_category where category_id='$saved_category_id'";
else
$q = "SELECT * from NG_product_category as pc, NG_category as c where pc.product_id='$product_id' and pc.category_id=c.category_id order by c.order_placement limit 1";
$results = mysql_query($q);
$row = mysql_fetch_array($results);
$category_id = $row["category_id"];
$category = $row["category"];
$category_clean_url = $row["clean_url"];
echo "
$category Wheels";
}
else
{
$q = "SELECT * from NG_brand where brand_id='$saved_brand_id'";
$results = mysql_query($q);
$row = mysql_fetch_array($results);
$brand_id = $row["brand_id"];
$brand = $row["brand"];
$brand_clean_url = $row["clean_url"];
echo "
$brand Wheels";
}
?>
›