skaterdav85 Posted April 20, 2009 Share Posted April 20, 2009 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 comment Share on other sites More sharing options...
justsomeguy Posted April 20, 2009 Share Posted April 20, 2009 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 comment Share on other sites More sharing options...
skaterdav85 Posted April 22, 2009 Author Share Posted April 22, 2009 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 comment Share on other sites More sharing options...
Ingolme Posted April 22, 2009 Share Posted April 22, 2009 Do you know where to get good free star images?This site has them:http://lmgtfy.com/?q=star+icons Link to comment Share on other sites More sharing options...
skaterdav85 Posted April 22, 2009 Author Share Posted April 22, 2009 This site has them:http://lmgtfy.com/?q=star+icons hahahaha that was amusing! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.