I am a programmer .I want to know how to implement * rating in php.Just tell me the steps
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
Not quite sure what you're talking about, so I'll give my best shot.
If you're talking about having a 5-star/10-star (etc) rating system, optimally, you should probably use a database backend and a jQuery frontend. In the database, you can store the stars as an tinyint (values 1-255), and you can use jQuery to:
Depending on how you want to accomplish this, you may have a boolean stored in the session which checks if the user has rated an item or not; this is to prevent someone from rating an item over 9000 times.