// Query for records from database
$query = "SELECT offer_id, business_name, website, offer_description, offer_expiration, logo FROM offers";
if (isset($_GET['arts-culture'])) { $query .= " WHERE cat_id=1"; }
if (isset($_GET['dining'])) { $query .= " WHERE cat_id=2"; }
if (isset($_GET['shopping'])) { $query .= " WHERE cat_id=3"; }
if (isset($_GET['city-events'])) { $query .= " WHERE cat_id=4"; }
$query .= " ORDER BY business_name";
// Get records from database
if ($stmt = mysqli_prepare($mysqli, $query)) {
$stmt->execute();
$stmt->bind_result($o_id, $biz_name, $biz_website, $o_description, $o_expiration, $biz_logo);
while ($stmt->fetch()) {
?>