PHP Classes

Ratings: Store and retrieve ratings of products in MySQL

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 64%Total: 477 This week: 1All time: 5,965 This week: 560Up
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
Age: 49
All time rank: 2505147 in India India
Week rank: 416 Up25 in India India Up
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  
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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:477
This week:1
All time:5,965
This week:560Up
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:655