Permalink
Browse files

Looks like the test code at the end kept smsrequest.php from executin…

…g completely. Apparently I'm having trouble with line 11, but it could just be smsrequest.php that is broken
  • Loading branch information...
1 parent 4f3e4cb commit 1241bd3bf10213968cc0a61996fac43f217315f0 @kamron kamron committed Jul 29, 2012
Showing with 1 addition and 9 deletions.
  1. +1 −9 query.php
View
@@ -8,7 +8,7 @@
*/
function get_results($query, $street_name){
- $json = do_curl_get_https("https://data.acgov.org/api/views/3d5b-2rnz/rows.json?search=burger&max_rows=25", $headers, $returnxfer = true);
+ $json = do_curl_get_https("https://data.acgov.org/api/views/3d5b-2rnz/rows.json?search="."$query"."&max_rows=25", $headers, $returnxfer = true);
$result_data = json_decode($json);
//print_r($result_data);
$result = array();
@@ -58,12 +58,4 @@ function do_curl_get_https($https_url, $headers) {
return $result_json;
}
-
-
-?>
-<pre>
-<?php
- $result = get_results('burger', 'ALVARADO NILE');
- print_r($result);
?>
-</pre>

0 comments on commit 1241bd3

Please sign in to comment.