Changeset 259 for trunk/npemap.org.uk
- Timestamp:
- Oct 31, 2006, 6:02:16 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/npemap.org.uk/cgi/get-postcodes.fcgi
r238 r259 72 72 73 73 if ($sth->execute($cgi->param('mineasting'), $cgi->param('maxeasting'), $cgi->param('minnorthing'), $cgi->param('maxnorthing'))) { 74 my $hr = $sth->fetchall_hashref('postcode');75 74 print "Content-type: text/javascript\n\n"; 76 75 77 foreach my $key (keys %$hr) {78 my $hash = $$hr{$key};79 print "addMarker('$ $hash{postcode}', $$hash{easting}, $$hash{northing}, [$$hash{id}, $$hash{source}]);\n";76 while(my @row = $sth->fetchrow_array) { 77 my ($postcode,$easting,$northing,$id,$source) = @row; 78 print "addMarker('$postcode', $easting, $northing, [$id, $source]);\n"; 80 79 } 81 80 print "completeMarkers();\n";
Note: See TracChangeset
for help on using the changeset viewer.