$steamid = $steamprofile['steamid'];
$nickname = $steamprofile['personaname'];
$current_date = date("l dS of F Y h:i:s A");
$query = "INSERT INTO users (steamid, nickname, joined, balance, totalBought, banned, admin) VALUES ('$steamid', '$nickname', '$current_date', '0', '0', '0', '0') ON DUPLICATE KEY UPDATE nickname = '$nickname'";
$userInfo = mysqli_query($connect, $query);