Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (25 sloc) 0.7 kb
if ($distance) {
<kml xmlns="">
<name>UK Postcodes</name>
<description>Postcodes within <?php echo $distance; ?> miles of <?php echo $title; ?></description>
while ($row = mysql_fetch_array($result)) {
<name><?php echo $row['postcode']; ?></name>
<a href="http://<?php echo $_SERVER['SERVER_NAME'] ?>/postcode/<?php echo str_replace(" ", "", $row['postcode']); ?>"><?php echo $row['postcode']; ?></a>
<coordinates><?php echo $row['lng']; ?>, <?php echo $row['lat']; ?></coordinates>
<?php } ?>
<?php } ?>
Jump to Line
Something went wrong with that request. Please try again.