PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2009-07-20 (7 years ago) RSS 2.0 feedNot enough user ratingsTotal: 467 All time: 5,750 This week: 946Up
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  
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:467
This week:0
All time:5,750
This week:946Up
User Comments (1)