include($_SERVER['DOCUMENT_ROOT']."/_includes/_constants.php"); include($_SERVER['DOCUMENT_ROOT']."/_includes/_conn.php"); if (empty($_REQUEST['id']) === false) { if (is_numeric($_REQUEST['id']) === true) { $restid = addslashes($_REQUEST['id']); } else { header("location: /500.php"); exit(); }; } else { header("location: /500.php"); exit(); }; $sql = "select * from Restaurants where RestaurantStatus = 'active' and RestaurantID = '" . $restid . "'"; $result = mysqli_query($con,$sql); $row = mysqli_fetch_array($result); $num_rows = mysqli_num_rows($result); if ($num_rows === 0) { $noresults = "1"; } else { $noresults = ""; $restname = $row['RestaurantName']; $address1 = $row['Address1']; $address2 = $row['Address2']; $address3 = $row['Address3']; $town = $row['Town']; $state = $row['State']; $telephone = $row['Telephone']; $email = $row['Email']; $website = $row['Website']; if ($row['PriceRange'] == 1) { $pricerange = "$"; } elseif ($row['PriceRange'] == 2) { $pricerange = "$$"; } elseif ($row['PriceRange'] == 3) { $pricerange = "$$$"; } elseif ($row['PriceRange'] == 4) { $pricerange = "$$$$"; }; $licensetype = $row['LicenseType']; $description = $row['Description']; $image = $row['RestaurantImage']; $area = $row['RestaurantArea']; $cuisinesql = "select CuisineName from restaurants_cuisines where CuisineID = " . str_replace("#","",$row['Cuisine']); $result2 = mysqli_query($con,$cuisinesql); $row2 = mysqli_fetch_array($result2); $cuisine = $row2['CuisineName']; $food = $row['TypeFood']; }; //get the old reviews $reviewsql = "select * from RestaurantFeedback where FeedbackApproved = 1 and RestaurantID = " . $restid; $result3 = mysqli_query($con,$reviewsql); $num_rows = mysqli_num_rows($result3); $htmltitle = $restname . ", " . $town . " - Sundance Guide"; $metadesc = "Details for the restaurant " . $restname . " in " . $town ; $metakeywords = "sundance film festival, sundance institute, park city, utah, restaurant, restaurants, eating, eat, food, dining, dine, dinner, lunch"; ?>
include($_SERVER['DOCUMENT_ROOT']."/_includes/_html_head.php"); ?> include($_SERVER['DOCUMENT_ROOT']."/_includes/_analytics.php"); ?>We couldn't find a restaurant for the URL you've entered. This may be because the restaruant has closed, or you've entered an invalid URL.
< Back to Restaurants Overview
} else { ?>Add a description for this restaurant >