I have built an advanced search page that almost does everything i want .
The problem i am having is with recordset paging.
When i run a search the first page of records is fine but when i click next page the sql query is getting messed up.
I am pretty sure the issue is with this part of the code as the select menu from the search page is passing accross the variable.
PHP Code:
// Category
if ( !empty($Category) && $Category == 'all' ) {
;
}
else {
$SQLQUERY .= "AND CategoryId = '$Category'";
}
This is the output of the query when it goes wonky
Quote:
|
SELECT * FROM offers INNER JOIN offertypes ON (offers.OfferType = offertypes.OfferTypeId) WHERE OfferId >= 1 AND OfferType = ''AND CategoryId = ''
|
Any Ideas?
__________________
Please direct all questions, complaints, messages, words of wisdom, assertions, suggestions and general chat - elsewhere!
Andalucia Web Design - Web Design Services and discount hosting.
|