$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; } ?>
Contact Us
How to contact WilyTravels - whether you want to ask a question, give advice or suggest a new destination, we want to hear from you. Drop us a line at content@650media.com and we will get back to as quickly as possible.
include('/tmp/comments_inc_do_not_remove/comments/comments_template.php') ?>
|
Popular Articles |