'That location no longer exists.']); exit; } $client_id = intval($row['location_client_id']); enforceClientAccess(); $location_form_mode = 'edit'; $location_name = escapeHtml($row['location_name']); $location_description = escapeHtml($row['location_description']); $location_address = escapeHtml($row['location_address']); $location_city = escapeHtml($row['location_city']); $location_state = escapeHtml($row['location_state']); $location_zip = escapeHtml($row['location_zip']); $location_country = escapeHtml($row['location_country']); $location_phone_country_code = escapeHtml($row['location_phone_country_code']); $location_phone = escapeHtml(formatPhoneNumber($row['location_phone'], $row['location_phone_country_code'], false)); $location_extension = escapeHtml($row['location_phone_extension']); $location_fax_country_code = escapeHtml($row['location_fax_country_code']); $location_fax = escapeHtml(formatPhoneNumber($row['location_fax'], $row['location_fax_country_code'], false)); $location_hours = escapeHtml($row['location_hours']); $location_notes = escapeHtml($row['location_notes']); $location_photo = escapeHtml($row['location_photo']); $location_primary = intval($row['location_primary']); $location_contact_id = intval($row['location_contact_id']); $location_tag_ids = []; $sql_location_tags = mysqli_query($mysqli, "SELECT tag_id FROM location_tags WHERE location_id = $location_id"); while ($tag_row = mysqli_fetch_row($sql_location_tags)) { $location_tag_ids[] = intval($tag_row[0]); } ob_start(); ?>