query_r("SELECT * FROM content_main WHERE id = '59'"); $section = $DBObj->query_r("SELECT * FROM content_sections WHERE id = '".$content["secid"]."'"); // Overrides $section["filename_image"] = $DBObj->query_r("SELECT filename_system FROM content_section_images WHERE itemid = '".$section["id"]."' AND isdefault = 1 AND type = 0"); // Default images here $filename_image = (!strlen($section["filename_image"])) ? "MountainMain.jpg" : $section["filename_image"]; $filename_image2 = $DBObj->query_r("SELECT filename_system FROM content_section_images WHERE id = '".$content["csectionimageid"]."'"); if (!strlen($filename_image2)) { $filename_image2 = $DBObj->query_r("SELECT filename_system FROM content_section_images WHERE itemid = '".$section["id"]."' AND isdefault = 1 AND type = 1"); } $filename_image2 = (!strlen($filename_image2)) ? "News.jpg" : $filename_image2; // Boomtown bar if ($content["id"] == 5) { $filename_image = "Bar.jpg"; $filename_image2 = ""; } if ($content["id"] == 13) { $filename_image = "Nordic.jpg"; $filename_image2 = "Nordic2.jpg"; } $snow = $DBObj->query_r("SELECT * FROM snow_main WHERE id = 1"); ?>