Hi there, I am working on my game from long time and its almost completed, but what i need is to connect my game with xampp - mysql to make it leadship , level , board on website, currently i am using local host
i can make the database and can write php code mysql queries, i just dont know how to make plugin or script in java to fetch
information from game client. all i just need explaining couple of examples writting it.
1) i want to make login system for my game
2) then fetch gold and level of player to fetch to mysql database to make leadership bord
currently i am using
host : localhost,
user : root,
password : "",
database: "wisepot"
code : i m using :
// Load the mysql package
var mysql_package = require('mysql');
var connection_data = mysql_package.createConnection({
host: "localhost",
user: "root",
password: "",
database: "shop"
});
connection_data.connect(function(err) {
console.log("Connected to XAMPP Server!");
});
i try to use code and try to connect with database but getting error with js file or plugin file
but it works with the php file correctly
i jst want some 1 write me one js file or plugin file - that connect database and i can write some queries in that to fetch gold and level values
i can make the database and can write php code mysql queries, i just dont know how to make plugin or script in java to fetch
information from game client. all i just need explaining couple of examples writting it.
1) i want to make login system for my game
2) then fetch gold and level of player to fetch to mysql database to make leadership bord
currently i am using
host : localhost,
user : root,
password : "",
database: "wisepot"
code : i m using :
// Load the mysql package
var mysql_package = require('mysql');
var connection_data = mysql_package.createConnection({
host: "localhost",
user: "root",
password: "",
database: "shop"
});
connection_data.connect(function(err) {
console.log("Connected to XAMPP Server!");
});
i try to use code and try to connect with database but getting error with js file or plugin file
but it works with the php file correctly
i jst want some 1 write me one js file or plugin file - that connect database and i can write some queries in that to fetch gold and level values