Skip to content

Commit

Permalink
Looks like the test code at the end kept smsrequest.php from executin…
Browse files Browse the repository at this point in the history
…g completely. Apparently I'm having trouble with line 11, but it could just be smsrequest.php that is broken
  • Loading branch information
kamron committed Jul 29, 2012
1 parent 4f3e4cb commit 1241bd3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions query.php
Expand Up @@ -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();
Expand Down Expand Up @@ -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.