Help: MySQL Error

Hello!

I have test this script test http://getkirby.com/blog/database

But I became a error…

Fatal error: Cannot use object of type Obj as array in httpdocs/site/templates/home.php on line 42

Line 40 - 45:

<?php foreach($comments as $comment): ?>
<li>
  <h3><?php echo html($comment['name']) ?> said…</h3>
  <p><?php echo html($comment['text']) ?></p>
</li>
<?php endforeach ?>

Can anyone help me?

Have you tried this?

$comment->name

Or

$comment->name()

Thanks,

$comment->name()

work!!!

LG