Miko Posted November 12, 2009 Share Posted November 12, 2009 Hello, Not sure that I'm posting this at the right location, if so just tell me I'm looking a way to make a "star rating system" for my day-time job. It should work like this: User has page with several images Each image has the "star rating" with max value 5 stars User clicks on one of the stars depending on the rating that he want's to give and is then stored in my MySQL DB Anyone knows a simple php script for this? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/181252-star-rating-system/ Share on other sites More sharing options...
otuatail Posted November 12, 2009 Share Posted November 12, 2009 You require 5 clickable images of stars that submit to another page. Using $_POST[] you can get the image that was clicked. Just needs updating a record in the database from 1-5 Desmond. Quote Link to comment https://forums.phpfreaks.com/topic/181252-star-rating-system/#findComment-956178 Share on other sites More sharing options...
mikesta707 Posted November 12, 2009 Share Posted November 12, 2009 Alternatively, you could use an Ajax request to update any database you would have. If you wanted the highlighting effect that most star rating systems have, you would need javascript anyways. If you do a google search im sure you can find this has been done many times Quote Link to comment https://forums.phpfreaks.com/topic/181252-star-rating-system/#findComment-956239 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.