<?php

$username = $_POST['username'];
$distance = $_POST['distance'];
$con = mysqli_connect("localhost","thedreamteam","El3ven","SSA") or die ("Error " . mysqli_error($con));

$query = mysqli_query($con,"UPDATE `Top Player` SET Distance=$distance WHERE PlayerName='$username'");
echo $query;
<?php

$username = $_GET['username'];
$distance = $_GET['distance'];
$con = mysqli_connect("localhost","thedreamteam","El3ven","SSA") or die ("Error " . mysqli_error($con));

$query = mysqli_query($con,"UPDATE `Top Player` SET Distance=$distance WHERE PlayerName='$username'");
echo $query;
Revert "Change GET to POST"
Revert "Change GET to POST"

This reverts commit 159f2b52c19d7335396224d5dadc35a4b9e13e3e.
