Web Analytics Made Easy -
StatCounter Ranking System - CodingForum

Announcement

Collapse
No announcement yet.

Ranking System

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Ranking System

    Hello,
    I've made a forum and i want to have a ranking system with it. I managed to display a postcount but i also want a few images to be displayed, like if you have made more then 50 posts, it displays 50.jpg or something, how can i accomplish this, in another way then just str_replace()ing all the number of posts?
    And how do i display 2, like if you have 50 posts, 50.jpg and if you have 60 posts, 60.jpg.
    Please Help Me.
    Cheers MPCODER

  • #2
    I fail to see the mySQL relevance ...

    anyway, can't you simple do some if's? Like
    PHP Code:
    $image 'regular.gif';
    if (
    $count >= 50){
       
    $image '50.jpg';
    }
    if (
    $count >= 60){
       
    $image '60.jpg';

    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html

    Comment


    • #3
      thanks man you really helped

      Comment


      • #4
        You're welcome. Glad you got it running.
        Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html

        Comment

        Working...
        X