i trying to instal on forum star rating system , and i find this code ... its working but guy who make this say ...

Inside the script you will see a function at the bottom that say's "sendRate()". That is where you can put any random javascript, ajax, form submission etc. That will actually do something with the rating data once the user selects a rating.

i dont know how to save rates and get avrige results .... script is good, but votes are not saved ... can anyone show me how to save rates ?
how to conect this script to database on forumotion ... or something