<?
include_once('classes/check.class.php');
if(isset($_POST['id'])) {
$id = $_POST['id'];
$auth_key = $_POST['auth_key'];
$newscore = $_POST['score'];
$query= "UPDATE $dbName.login_users SET score='".$newscore."', `bonus` = `bonus` + 0.5 WHERE user_id='".$id."'";
$sql = mysql_query($query);
}
?>