Ok, I have thrown together a dirt-basic PHP script to take scores and add them to a MySQL database. It is really easy to do and you will want to modify the script to behave how you want and to also add to the proper databases and tables. It all depends how you set up your database on your server. The settings are pretty straight foward so you shouldn’t have any trouble.
WARNING: this is not secure and I haven’t tested it! All this does is use a simple key to try to limit unauthorized access to the script. This is just meant to be a stepping stone as you will have to modify it to get it to behave exactly like you want it to.
There are two files, first db.inc.php:
<?php
/****
db.inc.php
file to hold all db information and connection scripts
****/
//our access information
$db_server = "myserver.com";
$db = "GameScores";
$user = "username";
$pass = "password";
//conect to the db
@mysql_connect($db_server, $user, $pass);
//select the database to connect to
@mysql_select_db($db);
?>
Edit the variables to whatever settings and passwords you have set up and make sure to put this file under a folder called INCLUDES that is only accessable from the server itself. That helps make sure no one can view that file with their browser, it should only be usable by the server itself.
Next the actual script file. Name it whatever you want with .php on the end.
<?php
$AUTHID = $_GET['AUTHID'];
$name = $_GET['name'];
$score = $_get['score'];
$mode = $_GET['mode'];
//set a random code to make it (very slightly) harder to use this system without your game.
//Make sure to send this exact same code in the AUTHID part of the querystring.
$PASSID = "Eesd453FWF3gGar4gEWfg";
if ($AUTHID == $PASSID)
{
//check that all data has been sent
if ($AUTHID == "" || $name == "" || $score == "" || $mode == "")
{
//do nothing. TODO: you might want to redirect to an error page and read the
//error page with Unity's WWW classes
}
else { //all the data is here so let's add it
if ($mode == "add")
{
//load db access info and connect to the db
require_once("INCLUDES/db.inc.php");
$query = "INSERT into scores (name, score) VALUES('$name', '$score')";
mysql_query($query);
//now redirect to the results page to read into unity. Comment out this line if you don't want this behaviour
header ("Location: http://www.yoursite.com/results.php");
}
}
}
?>
Again tweak the settings as needed. To use, follow the sample freyr posted a link to in the unity docs. the site request (querystring) should look like this:
mysite.com/scores.php?mode=add&name=johndoe&score=1200&AUTHID=Eesd453FWF3gGar4gEWfg
Should work fine. You would obviously want to change the PASSID in the main script file, and that would be the code you send from Unity.
If you have any trouble with it let me know. If you want to add to it/modify it, php.net is a great resource for the syntax and methods. Or ask here and if I can help I will 
Hope that helps get you started, and it can get very complex from here.
-Jeremy