I have corrected this and have a $price_query variable that should change when a filter button is pressed.
However, any changes to the $price_query is not happening.
I believe that the orginal whereClause gets set, when the page initially loads and that will include what is initially held in the $price_query variable, but when the page is refreshed by an update to the price filter the where clause is not getting updated with the change.
$WADbSearch1->whereClause .= $price_query . "ProductID IN (SELECT ProductID FROM productoccasions WHERE (OccasionID = ".implode($_GET["ProductOccasionID"]," OR OccasionID = ")."))";
Is there anyway I can force the whereClause to update and accept the change of the $price_query variable.
The variable is to be selected by a dropdown box once the page is loaded and then the customer can selected to show items based on a number of price options eg. $10 to $50 or $50 to $100.
I have tested the filter to check that $price_query does change when the filter button is selected by echoing the varaible within the same page, however the whereClause is not changeing based on the change to the variable, which leads me to believe that the whereClause is not being updated with the refresh of the page.
Any help would be greatly appreciated.