\r\n"; mail('jim.rolt@googlemail.com', $subject, $error, $headers); } if(isset($_GET['id']) && is_numeric($_GET['id'])){$id = $_GET['id'];}else{$id = 1;} $q = mysql_query("SELECT `Natural`.*, CountyName, bcomregion FROM `Natural` LEFT JOIN CountyDetails ON CountyDetails.RecordID = `Natural`.county WHERE id = $id")or mailjim("q", mysql_error()); $title = mysql_fetch_object($q); if($title->id){ $oq = mysql_query("SELECT id, title FROM `Natural` WHERE $title->county IN(county,county2,county3) AND id != $title->id")or mailjim("q", mysql_error()); } $c = mysql_query("SELECT RecordID, CountyName FROM CountyDetails"); $countyarry = array(); while($co = mysql_fetch_object($c)){$countyarry[$co->RecordID] = $co->CountyName;} $sql = "SELECT content, Entered, reviewer FROM Feedback WHERE link = '". mysql_real_escape_string($_SERVER['REQUEST_URI'])."' AND displayed = 1 ORDER BY Entered DESC"; $fb = mysql_query($sql)or mailjim('Feedback', "$sql\n".mysql_error()); $pageurl = $_SERVER['REQUEST_URI']; $cpcount = mysql_query("UPDATE pagecounter SET pagecount=pagecount+1 WHERE pageurl = '$pageurl'"); if(mysql_affected_rows()==0){$cpcount = mysql_query("INSERT INTO pagecounter(pageurl, pagecount, firstday) VALUES ('$pageurl', 1, NOW())");} $cq = mysql_query("SELECT pagecount FROM pagecounter WHERE pageurl = '$pageurl' "); $gcq = mysql_fetch_object($cq); $vcount = $gcq->pagecount; echo <<Natural Britain, $title->title, $title->CountyName EOT; ?>
county);*/ include'adviva.txt'; include'burstmedia.txt';; ?>
CountyName,$title->bcomregion); ?> amazon)){echo"$title->amazon";} else{ ?> book)){ echo""; } include'travelzoo.txt'; include'yeddabox.txt'; ?>
$title->title, $title->CountyName"; if(!empty($title->county2)){echo" | {$countyarry[$title->county2]}";} if(!empty($title->county3)){echo" | {$countyarry[$title->county3]}";} if(!empty($title->county4)){echo" | {$countyarry[$title->county4]}";} if(!empty($title->county5)){echo" | {$countyarry[$title->county5]}";} if(!empty($title->county6)){echo" | {$countyarry[$title->county6]}";} if(!empty($title->county7)){echo" | {$countyarry[$title->county7]}";} if(!empty($title->county8)){echo" | {$countyarry[$title->county8]}";} if(!empty($title->county9)){echo" | {$countyarry[$title->county9]}";} if(!empty($title->county10)){echo" | {$countyarry[$title->county10]}";} ?> \n"; include'linkunit.txt'; echo'

'; //echo"

Your feedback on this Article
\n"; /*if(!function_exists('file_exists')){ function file_exists($path){ return (@fopen($path,"r")==true); } }*/ if(file_exists("images/natural/$id.jpg")){ echo"

\"$title-title\">
\n"; } echo nl2br($title->content).'

More British Natural features?

'; if(mysql_num_rows($fb) > 0){ $feednum = mysql_num_rows($fb); $response = $feednum > 1 ? 'Responses' : 'Response'; echo"

$feednum $response to $title->title

\n"; while($feed = mysql_fetch_object($fb)){ $edate = date('jS F Y', strtotime($feed->Entered)); echo"

From $feed->reviewer on $edate
$feed->content

\n"; } } if(mysql_num_rows($oq) > 0){ echo"

Other $title->CountyName Naturals

\n

"; while($row = mysql_fetch_object($oq)){ echo"$row->title
"; } ?>