Create or show image based on number in variable.

Discussion in 'PHP' started by ade92uk, Mar 9, 2009.

  1. #1
    Hi, please go here: http://obolynx.com and make a web search - you will notice that it shows the pagerank and alexa rank next to it. Now i have two issues:

    1. How can i have it display the numebr in a nicer way, for example if the alexa ranking is 360672, to make it display it as 360, 672. Spliting all the numbers into groups of three and add comma where nessesary.

    2. I would also like to display an image very much like google does for the alexa rank. A bar showing what the rank means.

    Thanks.
     
    ade92uk, Mar 9, 2009 IP
  2. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #2
    number_format()
     
    SmallPotatoes, Mar 10, 2009 IP
  3. ade92uk

    ade92uk Banned

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, works perfectly. Now can anyone help me with displaying a bar based on the alexa rank. Thanks.
     
    ade92uk, Mar 10, 2009 IP