Changeset 61
- Timestamp:
- Oct 16, 2006, 2:37:35 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/npemap.org.uk/cgi/get-postcodes.fcgi
r47 r61 70 70 } 71 71 72 my $sth = $dbh->prepare("SELECT outward || ' ' || inward AS postcode, easting, northing FROM postcodes WHERE easting >= ? AND easting <= ? AND northing >= ? AND northing <=?");72 my $sth = $dbh->prepare("SELECT outward || ' ' || inward AS postcode, easting, northing FROM postcodes WHERE easting BETWEEN ? AND ? AND northing BETWEEN ? AND ?"); 73 73 if ($sth->execute($cgi->param('mineasting'), $cgi->param('maxeasting'), $cgi->param('minnorthing'), $cgi->param('maxnorthing'))) { 74 74 my $hr = $sth->fetchall_hashref('postcode');
Note: See TracChangeset
for help on using the changeset viewer.