1)update database schema 2)add database creadentions in the RatingManager.inc.php 3)Since this is user id based create $_SESSION['USERID'] = 'sudhir'; session variable and remove the hardcoded variable form ratingmanager.inc.php
info at phpclasses dot org