$link = mysql_connect('localhost', 'wilyone', 'C0y0t3'); //changet the configuration in required if (!$link) { die('Could not connect: ' . mysql_error()); } ?> mysql_select_db('wilytravel'); ?> $id=$_GET['id']; $slug=$_GET['slug']; $PAGE_NAME = $_SERVER['REQUEST_URI']; ?> $query = mysql_query("SELECT * FROM Content WHERE slug='$slug'"); while($result = mysql_fetch_object($query)) { $contentTitle = $result->title; $contentTeaser = $result->teaser; $contentCopy = $result->copy; $contentPicture = $result->picture; $contentSidebar = $result->sidebar; $website = str_replace("http://", "", $website); $website = str_replace("http//", "", $website); } ?> $query = mysql_query("SELECT * FROM Site WHERE id='1'"); while($result = mysql_fetch_object($query)) { $name = $result->name; $title = $result->title; $h1 = $result->h1; $sidebar = $result->sidebar; $header = $result->header; $homecopy = $result->homecopy; $meta = $result->meta; $url = $result->url; $analytics = $result->analytics; $adsense = $result->adsense; $sidebar = $result->sidebar; } ?>
Top 10 Travel DestinationsFatPassport is a new site that puts a spin on travel planning. Their recommendation engine takes into account your travel style, marital status, tolerance for hassles, etc. to give you the best recommendations for places you should visit. For instance, for me (and my wife and 1-year old son) it recommended that we visit Agra, India - that's not a destination I ever would have considered. Alternatively you can check out their top 10 beach vacations for some off-the-beaten-path recommendations. include('/tmp/comments_inc_do_not_remove/comments/comments_template.php') ?> |
Related Articles |