Jump to content

5 Star Rating Dynamic Graphic?


Recommended Posts

So in my mysql db i have averages (1 to 5) for user ratings of my items. Is there a graphic that I can pass my average to and it will generate a 5 star graphic depending on what my average is? How should i go about doing this? Thanks

Link to post
Share on other sites

Have an empty star image, and a full star image. Have a series of 5 of them that display. Use logic to figure out which image to display for each position. If you also want to show half stars, then it's 3 different images.

Link to post
Share on other sites
Have an empty star image, and a full star image. Have a series of 5 of them that display. Use logic to figure out which image to display for each position. If you also want to show half stars, then it's 3 different images.
Do you know where to get good free star images?
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...