enter link description hereThis is my code in PHP
$query = new ParseQuery("CourseInfo");
$query->equalTo("Admin", "username1");
$results = $query->find();
echo $results;
This is returned via the XMLHTTPRequest and a callback in my JS file.
- What does Parse send to PHP (I thought an array of objects)?
- What does PHP send to JS? (I've no idea)
- How can i access this data in JS?
Thanks!
Update: i found some of the answer here: PHP: echoing array only returns the word array instead of its content
basically, echo $results
just returns the string "array".
Using `print_r($results) gives a very large data array/object?
I'll put this into a new question.