\r\n"; mail('jim.rolt@googlemail.com', $subject, $error, $headers); } include'dataedit/sql.php'; $rq = mysql_query("SELECT county, countyname, Country.Name AS countryname, Country.ID, EstType FROM EstDetails INNER JOIN reviews ON reviews.est = EstDetails.RecordID AND reviews.display = 1 AND reviews.type = 1 INNER JOIN EstablishmentType ON EstablishmentType.ID = EstDetails.EstType INNER JOIN CountyDetails ON CountyDetails.RecordID = EstDetails.county INNER JOIN Country ON Country.ID = CountyDetails.CountryID ORDER BY Country.ID, countyname")or mailjim("q", mysql_error()); $total = number_format(mysql_num_rows($rq)); $t = mysql_query("SELECT DISTINCT EstablishmentType.id, EstablishmentType.type FROM EstablishmentType INNER JOIN EstDetails ON EstablishmentType.ID = EstDetails.EstType INNER JOIN reviews ON reviews.est = EstDetails.RecordID AND reviews.display = 1 AND reviews.type = 1 ORDER BY type")or die(mysql_error()); $oth = mysql_query("SELECT reviews.id, reviewtypes.type FROM reviews INNER JOIN reviewtypes ON reviewtypes.id = reviews.type WHERE reviews.type IN(2,3,4) AND reviews.display = 1")or mailjim("Oth", mysql_error()); ?> Visitor Reviews on our hotels, Inns, B&B's, Pubs, restaurants and Bars

Related links:

Reports | Hotels | B&B's | Pubs

review); $num = (count($description) < 30) ? count($description) : 30; for($i=0; $i<$num; $i++){$desc .= $description[$i].' ';} echo <<Featured review
$wb->name
$wb->name
$desc...More

EOT; include'connect.php'; connect('','','Visitor Reviews'); ?>
We have $total independent visitor reviews posted\n"; include'linkunit.txt'; echo"

\n"; $ccheck = ''; $check = ''; //List links at top of page while($row = mysql_fetch_object($rq)){ if($ccheck != $row->countryname){ echo ''.$row->countryname.": \n"; $ccheck = $row->countryname; } if($check != $row->countyname){ echo 'county.'>'.$row->countyname." | \n"; $check = $row->countyname; } } mysql_data_seek($rq, 0); echo"

We have reviews on these categories

"; while($row = mysql_fetch_object($t)){ $count = 0; while ($cc = mysql_fetch_object($rq)){ if($cc->EstType == $row->id){$count++;} } mysql_data_seek($rq, 0); echo"$row->type($count) | "; } $shopnum = ''; $sportnum = ''; $eventnum = ''; while($row = mysql_fetch_object($oth)){ if($row->type == 'Shops'){$shopnum ++;} elseif($row->type == 'Sports'){$sportnum ++;} elseif($row->type == 'Events'){$eventnum ++;} } if(!empty($shopnum)){echo" Shops($shopnum)";} if(!empty($sportnum)){echo" | Sports($sportnum)";} if(!empty($eventnum)){echo" | Events($eventnum)";} include'dailyfeature.php'; ?>