From ce58f84fda93e6089caa5b724110dc7e01feddd1 Mon Sep 17 00:00:00 2001 From: Comment Date: Mon, 20 May 2013 21:43:30 +0100 Subject: tidying up --- tableKML.php | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) mode change 100644 => 100755 tableKML.php (limited to 'tableKML.php') diff --git a/tableKML.php b/tableKML.php old mode 100644 new mode 100755 index d0daaae..1007f42 --- a/tableKML.php +++ b/tableKML.php @@ -1,4 +1,9 @@ + \n"; -echo "\n"; +$output = ''; +$output .= "\n"; +$output .= "\n"; $n=mysql_numrows($result); $i=0; + while ($i < $n) { $T=mysql_fetch_array($result, MYSQL_ASSOC); - echo "\n"; - echo "".$T[name]."\n"; - echo "\n"; - echo "".$T[lat].",".$T[lng].",0\n"; - echo "\n"; - echo "\n"; - $i+=1; + $output .= "\n"; + $output .= "".str_replace('&', '&', $T['name'])."\n"; + $output .= "\n"; + $output .= "".$T['lat'].",".$T['lng'].",0\n"; + $output .= "\n"; + $output .= "\n"; + $i +=1; + } mysql_close(); -echo "\n"; +$output .= "\n"; + +echo $output; + ?> -- cgit v1.2.3