if you are sending values to a php file you can get them by using:
PHP Code:
$xp = $_POST['xp'];
$gold = $_POST['gold'];
Then you have to put it into the database.
First build a database connection:
PHP Code:
$connection = mysql_connect ("servername", "user", "password") or die ("No connection. Wrong user or password.");
mysql_select_db("databasename") or die ("Database does not exist.");
Then we have to fill the table with our data:
PHP Code:
$insert = "INSERT INTO tablename (xp, gold) VALUES ('$xp', '$gold')";
$do_insert = mysql_query($insert);
I hope you understand it.
Regards,
telcy