Thanks for the reply, it’s not a case issue. I tried your suggestion and here is the result:
<div>stdClass Object
(
[comment_ID] => 84
[comment_post_ID] => 276
[comment_author] => Someone Youdontknow
[comment_author_email] => [email protected]
[comment_author_url] =>
[comment_author_IP] => ???.???.???.???
[comment_date] => 2010-10-24 17:21:13
[comment_date_gmt] => 2010-10-24 21:21:13
[comment_content] => One of the few low ping servers iv been too with such great performance, overall I love this server.
[comment_karma] => 0
[comment_approved] => 1
[comment_agent] => Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.41 Safari/534.7
[comment_type] =>
[comment_parent] => 0
[user_id] => 0
)
</div>
I’m using some code to randomly display a testimonial, here’s the entire code if it helps:
<?php
$post_id = 276; // Put the 'testimonials' id here
$comments = get_comments("post_id=$post_id&status=approve");
if ($comments) {
$ndx = mt_rand(1,sizeof($comments)) - 1;
$comment = $comments[$ndx];
?>
<div style="background:url(https://www.hivegaming.net/images/comments.png) no-repeat;height:165px;width:336px">
<div style="width:283px;height:120px;padding:12px 27px 0px 27px;font-size:90%;overflow:hidden;font-weight:bold"><?php echo "$comment->comment_content"; ?></div>
<div style="margin:9px 0 0 75px;height:15px;width336px"><?php echo "$comment->comment_author"; ?><span style="float:right;margin-right:3px;"><a href="<?php echo "$comment->comment_author_url"; ?>"><?php echo "$comment->extra_sitename"; ?></a></span></div>
</div>
<?php }
?>