array("Essex", "Suffolk", "Norfolk", "Cambridgeshire"), "London" => array("London", "Surrey" $counties = array( , "Hertfordshire" "Kent", "Hampshire", "Wiltshire", "Dorset", "Somerset", "Devon", "Cornwall", "East Sussex", "West Sussex", "Lincolnshire", "Buckinghamshire", "Oxfordshire", "Gloucestershire", "Herefordshire", "Worcestershire", "Warwickshire", "Leicestershire", "Northamptonshire", "Bedfordshire", "Berkshire", "Derbyshire", "Staffordshire", "Shropshire", "Rutland", "Middlesex", "Nottinghamshire", "Carmarthenshire", "Ceredigion", "Conwy", "Denbighshire", "Flintshire", "Glamorgan", "Gwynedd", "Isle of Anglesey", "Monmouthshire", "Pembrokeshire", "Powys", "Wrexham", "Cheshire", "Cumbria", "Lancashire", "Merseyside", "Cleveland", "Co Durham", "Yorkshire", "North Yorkshire", "Northumberland", "Tyne and Wear", "York", "Aberdeenshire", "Angus", "Argyll", "Ayrshire", "Banffshire", "Berwickshire", "Borders", "Clackmannanshire", "Dumfries and Galloway", "Dunbartonshire", "Fife", "Hebrides", "Highlands", "Inverness-Shire", "Isle of Mull", "Isle Of Skye", "Isle Of Wight", "Kirkcudbrightshire", "Lanarkshire", "Lothian", "Moray", "Perthshire", "Ross-Shire", "Shetlands", "Stirlingshire", "Strathclyde", "Sutherland", "Wigtownshire" ); */ $query = mysql_query("select name, countyID from counties order by name asc;"); while($result = mysql_fetch_array($query)) { $counties[] = array("name" => $result["name"], "countyID" => $result["countyID"]); } /* $counties = array("Essex", "Suffolk", "Kent", "Norfolk", "Hampshire", "Wiltshire", "Dorset", "Somerset", "Devon", "Cornwall", "East Sussex", "West Sussex", "Surrey", "London", "Cambridgeshire", "Lincolnshire", "Hertfordshire", "Buckinghamshire", "Oxfordshire", "Gloucestershire", "Herefordshire", "Worcestershire", "Warwickshire", "Leicestershire", "Northamptonshire", "Bedfordshire", "Berkshire", "Derbyshire", "Staffordshire", "Shropshire", "Rutland", "Middlesex", "Nottinghamshire", "Carmarthenshire", "Ceredigion", "Conwy", "Denbighshire", "Flintshire", "Glamorgan", "Gwynedd", "Isle of Anglesey", "Isle of Man", "Monmouthshire", "Pembrokeshire", "Powys", "Wrexham", "Cheshire", "Cumbria", "Lancashire", "Merseyside", "Cleveland", "Co Durham", "North Yorkshire", "East Yorkshire", "West Yorkshire", "South Yorkshire", "Northumberland", "Tyne and Wear", "York", "Aberdeenshire", "Angus", "Argyll", "Ayrshire", "Banffshire", "Berwickshire", "Borders", "Clackmannanshire", "Dumfries and Galloway", "Dunbartonshire", "Fife", "Hebrides", "Highlands", "Inverness-Shire", "Isle of Mull", "Isle Of Skye", "Isle Of Wight", "Kirkcudbrightshire", "Lanarkshire", "Lothian", "Moray", "Perthshire", "Ross-Shire", "Shetlands", "Stirlingshire", "Strathclyde", "Sutherland", "Wigtownshire" ); sort($counties); */ $page = new page("main.tpl"); $breadcrumbs = array( array("name" => 'Campsites by county', "link" => '') ); $page->add_breadcrumbs($breadcrumbs); $page->assign("title", "Camping & Campsites - Search by county"); $page->assign("meta_description", "Search for a campsite by county"); $page->sub_template("menu.tpl", "menu"); $page->assign("counties_link", "menu_selected"); $page->assign("rel_path", '/'); $content = ''; $search = new campsite_search(); $content .= $search->display(); $count = 1; $content .= '
'; foreach($counties as $county) { if($count%20==0) { $content .= '
'; } $content .= ''.$county["name"].'
'; $count++; } $content .= '

'; $content .= '



'.google_ads("horiz_links").'
'; $page->assign("content", $content); $page->display(); ?>