include_once('dbread.inc.php'); include_once('display.inc.php'); $country = forcealphanumericspace($_GET['country']); $countryquery = "SELECT * FROM ducktravels WHERE reader=0 AND approved=1 AND country='$country' ORDER BY rating DESC"; $countryresult = returnresult($countryquery); if ($countryresult) { //check to see if query has produced results if (mysql_num_rows($countryresult) > 6) { if (mysql_num_rows($countryresult) > 15) { $sidead = 'multiple'; } else { $sidead = 'single'; } } } include_once('header.php'); echo "
Ducky on holiday in ".$countrycode[$_GET['country']].", click on a photo to view it.
"; if ($countryresult) { //check to see if query has produced results $counter = 1; echo "\n";
$title = htmlspecialchars($row['description']." - ".$row['city'].", ".$countrycode[$row['country']]);
echo " \n";
displayimage($row['picture'], $imagedir, 1, htmlspecialchars($row['city']).", ".$countrycode[$row['country']], '', 1, "class='gallerypic'", '', '', '');
echo " ".$row['city']." | ";
if ($counter == 3) {
echo "
See what other countries our duck has been on holiday to in the duck travels gallery.
"; include_once('footer.php'); ?>