On Wed, May 16, 2012 at 10:02 AM, Dhira P. Yuga <
d18....@gmail.com> wrote:
> I use store like this $rows = $store->query($query, 'rows').
> i want select that data and display that on web browser.
>
If the books can have an arbitrary number of authors, and you don't
want more than one row per book, you need to do a DESCRIBE or
CONSTRUCT and create the table yourself:
<?php
$index = $store->query($yourDescribeQuery, 'raw');
$titleP = '';// the uri of your hasTitle predicate
$authorP = '';// the uri of your hasAuthor predicate
?>
<table>
<?php foreach($index as $uri => $props):?>
<tr>
<td><?php echo $props[$titleP][0]?></td>
<td><?php echo implode(', ', $props[$authorP])?></td>
</tr>
<?php endforeach ?>
</table>
Cheers
Keith