Login   Register  
PHP Classes
elePHPant
Icontem

File: rpc.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Sudhir Chauhan  >  Star rating  >  rpc.php  >  Download  
File: rpc.php
Role: Example script
Content type: text/plain
Description: the file used by ajax to send request to rating manage
Class: Star rating
Update votes and display rated content with stars
Author: By
Last change:
Date: 2008-01-13 07:17
Size: 287 bytes
 

Contents

Class file image Download
<?php
include('RatingManager.inc.php'); 
$ratingManager RatingManager::getInstance();
 
// $_REQUEST['j'] vote values 
 // $_REQUEST['q'] product id voted
 // $_REQUEST['t'] IP address of the personal
$ratingManager->updateVote($_REQUEST['j'], $_REQUEST['q'], $_REQUEST['t']);
?>