- 帖子
- 37
- 积分
- 163
- 体力
- 75 点
- 金币
- 69
- 威望
- 0
|
/**
* 获得最新的评论列表。
*
* @access private
* @return array
*/
function get_mycomments($num)
{
$sql = 'SELECT id_value, user_name, content, add_time, comment_rank FROM ' . $GLOBALS['ecs']->table('comment') . ' WHERE comment_rank = 5 AND status = 1 ORDER BY comment_id DESC LIMIT 5';
if ($num > 0)
$res = $GLOBALS['db']->getAll($sql);
$comments = array();
foreach ($res AS $idx => $row)
{
$comments[$idx]['user_name'] = $row['user_name'];
$comments[$idx]['content'] = $row['content'];
$comments[$idx]['id_value'] = $row['id_value'];
$comments[$idx]['add_time'] = date('Y年m月d日', $row['add_time']);
$comments[$idx]['comment_rank'] = $row['comment_rank'];
}
return $comments;
}
这样是调出 5 星的
那么我想再调用综合评分 得怎么改呢? |
|