PHP Classes

PHP AJAX Voting Script: Store up or down user votes in MySQL or files

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
Not enough user ratingsTotal: 546 This week: 1All time: 5,540 This week: 47Up
Version License PHP version Categories
php-ajax-voting 1.0.0BSD License5.0PHP 5, Databases, Files and Folders, C..., A...
Description 

Author

This class can store up or down user votes in MySQL or files.

It can record user votes as up or down values for a certain item in either a MySQL database or in files.

The class can also retrieve the current vote count for a certain item and return its information in JSON formatted string suitable for use as response to an AJAX request.

Picture of MarPlo
Name: MarPlo <contact>
Classes: 7 packages by
Country: Romania Romania
Age: ???
All time rank: 79817 in Romania Romania
Week rank: 50 Up2 in Romania Romania Up
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files (14)  
File Role Description
Files folder imagevotingfiles (9 files)
Files folder imagevotingtxt (3 files)
Accessible without login HTML file Read.html Doc. Documentation
Accessible without login Plain text file test.html Data Example script

  Files folder image Files (14)  /  votingfiles  
File Role Description
  Plain text file class.voting.php Class php class for voting script
  Accessible without login Plain text file create_tables.php Aux. php code to create mysql tables
  Accessible without login HTML file index.htm Data index file in votingfiles directory
  Accessible without login Image file votdown.png Icon voting down image
  Accessible without login Plain text file voting.css Data file with css code
  Accessible without login Plain text file voting.js Data file with javascript code
  Accessible without login Plain text file voting.php Example php code that uses class.voting.php
  Accessible without login Image file votplus.gif Icon image used in voting script
  Accessible without login Image file votup.png Icon image fo voting up

  Files folder image Files (14)  /  votingtxt  
File Role Description
  Accessible without login HTML file index.html Data index file in votingtxt directory
  Accessible without login Plain text file voting.txt Data stores the voting data
  Accessible without login Plain text file votusers.txt Data stores the users which voted

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:546
This week:1
All time:5,540
This week:47Up