Server.prototype.updateDatabase = function(userId, userName, kills, deaths, score, time)
{
console.log(time); //returns 41
connection.query({
sql: "SELECT * FROM users WHERE username = ?", //See if the user was playing on an account or guest account
values: [userName] },
function(error, results, fields)
{
if (error)
{
console.log(error);
}
if(results) //If they were, update their stats
{
console.log(time); // returns undefined ---