Working code that needs to change:
<?
$row = 0;
if (is_numeric($category) || $search) {
// if category is defined, show all records in that category
if ($search) {
$lots = $data->searchAuctionDetails($id, $search);
} else {
$lots = $data->getAuctionDetails($id, $category);
}
?>
Changes required in plain english:
category can be either a number 35 etc. or 'ALL'
if category is a number execute
$lots = $data->searchAuctionLotDetails($id, $category, $search);
if category is 'ALL' execute
$lots = $data->searchAuctionDetails($id, $search);
other wise execute $lots = $data->getAuctionDetails($id, $category);
My new coding (not working just shows blank screen):
<?
$row = 0;
if (is_numeric($category) || $search) {
// if category is defined, show all records in that category
if ($search) {
if (is_alphabetic($category)) {
$lots = $data->searchAuctionDetails($id, $search);
else {
$lots = $data->searchAuctionDetails($id, $category, $search);
}}
} else {
$lots = $data->getAuctionDetails($id, $category);
}
}
?>
Any advice would be appreciated