Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Star Rating

$
0
0
Hi guys, i'm currently creating an application with the star rating widget.
What i'm looking to achieve is that a person should only be allowed to have one rate of a product, but he may update his rating if he chooses. Therefore the system should check if a rating of that user on that product already exist. If i does, the default value of the stars should be the rating he/she submitted last time, and if the user chooses to submit again, this row in the database table should be updated. If no rating on that product has been done by this user before, he/she should be see empty stars, and if any rating is submitted this would create a new row in the database table.

I have some ideas on how some of this would be made, but i can be wrong about the method. I'm particular unsure of how the application should check wether the user already have a rating on that product.

Can you guys please help me?

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>