-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error "0" from server: #11
Comments
The dataset you're trying to access doesn't have a To achieve your goal, try building a query like so:
|
@allejo Thank you very much... The names on the dataset were different from the .json response |
@allejo How can I add two parameters to this assoc array? For example, I wanted to add a parameter which would have the date ('created_date') appear in descending order. According to the documentation I should use $order= created_date DESC, but unsure how to add to this parameter. The dataset is sorting in ASC order, I just need to reverse it. $incident_zip = array_get("incident_zip",$_POST); $params = array("$where" => "starts_with(incident_zip, '$incident_zip')"); |
Separate it with a comma. Something like this would do: $params = array(
"\$where" => "starts_with(incident_zip, '$incident_zip')",
"\$order" => "<something>"
); |
@allejo Thank you very much. |
Hello,
Are you able to tell me what's wrong with my code? I keep getting the error "0" from server.
Here's my code shown below, which is from your example code...
Thanks in advance.
"starts_with(incident_zip, '11207')"); $response = $socrata->get("/resource/$view_uid.json", $params); ``` } ?>The text was updated successfully, but these errors were encountered: