'' AND eid=2 "; } if ($category AND !isset($subcategory)) { $wherecondition = "WHERE strtoupper(category) = '$category' AND file1 <> '' AND eid=2 "; } if ($wherecondition == "") { $wherecondition = "WHERE file1 <> '' AND eid=2 "; } ?>