$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']; ?> $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; } ?>