
" . $thisResult['name'] . ""; if($thisResult['verified'] == 1){ echo ""; } echo "
" . substr($thisResult['description'], 0, 110) . "...
session_start(); include "includes/required.php"; include "controllers/search_controller.php"; include "controllers/listing_controller.php"; $background = RAND(1,3); $totalResults = 0; $searchLocation = ucwords($_GET['location']); if(isset($_GET['type'])){ $searchType = strtolower($_GET['type']); if($searchType == "all"){ $searchType = ""; } } else { $searchType = ""; } if(isset($_GET['search'])){ $searchString = strtolower($_GET['search']); } else { $searchString = ""; } if($searchLocation != "" && $searchString == ""){ // Search location only $allSearchResults = getSearchResults($mysqli, $searchLocation); $totalResults = count($allSearchResults); } if($searchLocation != "" && $searchString != "" && $searchType == ""){ // Search location and string only $allSearchResults = getSearchStringResults($mysqli, $searchLocation, $searchString); $totalResults = count($allSearchResults); } if($searchLocation != "" && $searchString == "" && $searchType != ""){ // Search location and type only $typeID = getBusinessIdFromType($searchType); $allSearchResults = getSearchTypeResults($mysqli, $searchLocation, $typeID); $totalResults = count($allSearchResults); } if($searchLocation != "" && $searchString != "" && $searchType != ""){ // Search location, string and type only $typeID = getBusinessIdFromType($searchType); $allSearchResults = getSearchStringTypeResults($mysqli, $searchLocation, $searchString, $typeID); $totalResults = count($allSearchResults); } $displayMessage = ""; if(isset($_GET['bookmark'])){ addBookmark($mysqli, $_GET['bookmark'], $usersUuid); $displayMessage = "Listing has been bookmarked"; } if(isset($_GET['unbookmark'])){ removeBookmark($mysqli, $_GET['unbookmark'], $usersUuid); $displayMessage = "Listing has been unbookmarked"; } ?>
include "includes/header.php"; ?>" . substr($thisResult['description'], 0, 110) . "...