Jump to content

[SOLVED] Displaying images in place of a number.


RoninStretch

Recommended Posts

Now i know this is possible with libraries etc but I'm still new so I don't know enough to get involved with that yet.

 

However I have a small site where users sign up and can earn/spend points.

I display the users points in the top of every page but atm it looks really bland.

So i created ten images..numbers 0-9.

When put next to each other these images should sit together to look like one number..The points can go upto the millions.

 

Of course the problem is how to decide which image/number to place and how???

 

I don't know what's possible with php but is there a way so that, for example if our points value is 43012, I can find out how long the number is? i.e how many characters long? Then find the first number is 4 so display image_4.gif, second number is 3 so display image_3.gif and so on?

 

 

Any links to relevant reading or advice will be hugely appreciated.

 

Thanks.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.