//query the page being requested's ID and get it all $site_query = mysql_query("SELECT * FROM ".$prefix."main WHERE `id`='".$_REQUEST["id"]."'") or die(mysql_error()); $site = mysql_fetch_array($site_query); if ($site ["site_type"] == "AJF") { // Specify the Primary website's Information $title = "Austin Junior Forum and Daniel H Caswell House"; $home = "Geek On Wheels"; $home_url = "http://www.geekonwheels.com"; $title2 ="Austin Texas"; $site_url = "http://www.austinjuniorforum.org/newSite/"; // this needs to be added to the db and should contain or not contain trailing slash $homepage = "Welcome to the Austin Junior Forum and Daniel H. Caswell House!"; } else { // Specify the Second website's Information $title = "Daniel H Caswell House"; $home = "Geek On Wheels"; $home_url = "http://www.geekonwheels.com"; $title2 ="Austin Texas"; $site_url = "http://www.caswellhouse.org/newSite/"; // this needs to be added to the db and should contain or not contain trailing slash $homepage = "Welcome to the Daniel H. Caswell House!"; }