PHP Classes

Ratings: Store and retrieve ratings of products in MySQL

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 64%Total: 478 All time: 5,962 This week: 68Up
Version License PHP version Categories
ratings 1.0GNU General Publi...5.2PHP 5, Databases, Content management
Description 

Author

This class can be used to store and retrieve ratings of products in a MySQL database.

It can insert yes or no ratings of products in a MySQL database table associating to an anonymous user identified by his IP address or to logged user identifier.

The class can also retrieve a summary of all the ratings of a product.

Picture of Manish Khanchandani
Name: Manish Khanchandani <contact>
Classes: 2 packages by
Country: India India
Innovation award
Innovation award
Nominee: 1x

Details

Upload the sql file on your database and change the database configuration in the file Xoriant_Ratings.php Look at the example_yesno.php, simple_example_add.php to get an idea of how to use the class. You can choose uniqueip to 1 and uniqueuser to 1 to make one vote from each user and each ip.

  Files folder image Files (5)  
File Role Description
Accessible without login Plain text file example_yesno.php Example Example
Accessible without login Plain text file simple_example_add.php Example Example
Accessible without login Plain text file readme.txt Doc. Readme file
Accessible without login Plain text file xoriant_ratings.sql Data Sql File
Plain text file Xoriant_Ratings.php Class Ratings Class File

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:478
This week:0
All time:5,962
This week:68Up
User Ratings User Comments (1)
 All time
Utility:83%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:75%StarStarStarStar
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:64%StarStarStarStar
Rank:672