Can't retrieve data

This is my first attempt to display data. I've created landing.php in the About folder. When I try to run it, I get a 500 server error. I'm basically just adding an example on the API documentation. You can see the result at

http://collections.louisahistory.org/pawtucket/index.php/About/landing

The code (I omitted the HTML above the /div). The html by itself works fine--if I delete the php code, it brings up the screen.

</div>

<?php

$o_search=new ObjectSearch();

$qr_results=$o_search->search("Unknow");

// dump preferred labels in all languages

while($qr_results->nextHit()) {

print_r($qr_results->get('ca_objects.preferred_labels.name', array('returnAllLocales' => true, 'returnAsArray' => true)))";

}

?>

Sign In or Register to comment.