PHP Classes

Reviews: Store and retrieve reviews of products in MySQL

Recommend this page to a friend!
  Info   View files View files (12)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 59%Total: 545 All time: 5,545 This week: 455Up
Version License PHP version Categories
reviews 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 MySQL database.

It stores reviews written by users about given products in a MySQL database table associating to an anonymous user identified by his IP address or to logged user identifier.

It can also store information about users that agreed or not with each review.

The class can also retrieve all reviews of a product and a summary of all the ratings of each review.

Innovation Award
PHP Programming Innovation award nominee
August 2009
Number 2


Prize: One license of ScriptCase Enterprise edition
Many content sites display products of interest of their users. Some allow the users to submit their own reviews of the products. Others even let other users vote on whether they agree with other user reviews.

This package provides a solution that implements all those features and can be used for any kind of products.

Manuel Lemos
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: 270 Up22 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_Reviews.php Look at the example1.php to get an idea of how to use the class.

  Files folder image Files  
File Role Description
Accessible without login Plain text file example1c_confirm.php Example Example
Accessible without login Plain text file example1c_add.php Example Example
Accessible without login Plain text file example1c.php Example Example
Accessible without login Plain text file example1b_confirm.php Example Example
Accessible without login Plain text file example1b_add.php Example Example
Accessible without login Plain text file example1b.php Example Example
Accessible without login Plain text file example1a_add.php Example Example Add
Accessible without login Plain text file example1a.php Example Example
Accessible without login Plain text file example1.php Example Example
Accessible without login Plain text file readme.txt Doc. Readme file
Accessible without login Plain text file reviews.sql Data Sql File
Plain text file Xoriant_Reviews.php Class Main Class File

 Version Control Unique User Downloads Download Rankings  
 0%
Total:545
This week:0
All time:5,545
This week:455Up
User Ratings User Comments (2)
 All time
Utility:75%StarStarStarStar
Consistency:58%StarStarStar
Documentation:75%StarStarStarStar
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:1322
 
I rate this for i can see it after.
14 years ago (Jorge Bellido Galea)
80%StarStarStarStarStar
You've got a big SQL Injection problem in for example your sh...
14 years ago (Kai Dorschner)
57%StarStarStar