I am a real noob when it comes to javascript/ajax, so any help will be very appreciated. In reference to this question:
Updating a MySql database using PHP via an o
What you would do is on the php server side have a page lets say its update.php. This page will be visited by your javascript in an Ajax request, take the request and put it in a database.
The php might look something like this:
Your javascript would simply preform an ajax request on update.php and send it the variables as get value "score".