Browse Source

fixed sql typo in api

master
memespring 17 years ago
parent
commit
8e00074f0a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      docs/include/application.php

+ 1
- 1
docs/include/application.php View File

@@ -107,7 +107,7 @@ require_once('DB.php');


function query($x,$y,$d) { function query($x,$y,$d) {
$db = DB::connect(DB_CONNECTION_STRING); $db = DB::connect(DB_CONNECTION_STRING);
$sql = "select council_reference, address, postcode, description, info_url, comment_url, map_url, x, y, date_receive, full_name
$sql = "select council_reference, address, postcode, description, info_url, comment_url, map_url, x, y, date_recieved, full_name
from application from application
inner join authority on application.authority_id = authority.authority_id inner join authority on application.authority_id = authority.authority_id
where application.x > " . $db->quote($x - $d) . " and application.x < " . $db->quote($x + $d) . where application.x > " . $db->quote($x - $d) . " and application.x < " . $db->quote($x + $d) .


Loading…
Cancel
Save