showing content
Am trying to get this to work but cannot get the RS correct.
Am looking to shjow 'From' if te the product item has an option associated with it.
<?php if ($Categories->getColumnVal("OptionGroupID")) { ?>
From
<?php } ?>
This is the RS
<?php
$Categories = new WA_MySQLi_RS("Categories",$DBConnection,0);
$Categories->setQuery("SELECT productcategories.CategoryName, productcategories.CatPermalink, productcategories_2.CategoryName AS parentcategoryname, productcategories_2.CatPermalink AS parentpermalink, products.*, productmanufacturers.ManufacturerName, options.* FROM productcategories LEFT OUTER JOIN productcategories AS productcategories_2 ON productcategories.CategoryParentID = productcategories_2.CategoryID LEFT OUTER JOIN products ON productcategories.CategoryID = products.ProductCategoryID LEFT OUTER JOIN productmanufacturers ON products.ProductManufacturerID = productmanufacturers.ManufacturerID INNER JOIN options ON products.ProductID = options.OptionGroupID WHERE productcategories.Live = 1 AND productcategories.CatPermalink = ? AND products.ProductLive = 1 ORDER BY productcategories.CategoryOrder ASC");
$Categories->bindParam("s", "".$_GET["perm"] ."", "-1"); //WAQB_Param1
$Categories->execute();
?>
How this is set currently is stopping any items from being returned let alone not adding From if appropriate