PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2009-07-20 (7 years ago) RSS 2.0 feedNot enough user ratingsTotal: 524 All time: 5,400 This week: 1,099Up
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
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:524
This week:0
All time:5,400
This week:1,099Up
User Comments (2)
I rate this for i can see it after.
7 years ago (Jorge Bellido Galea)
80%StarStarStarStarStar
You've got a big SQL Injection problem in for example your sh...
7 years ago (Kai Dorschner)
57%StarStarStar