comment_ID, 'rating', true)); for ($i = 1; $i <= 5; $i++) { $active_class = $i <= $rating ? 'active' : ''; echo ''; } echo '' . $rating . ''; ?>