2
Well, I have the following code:
pool.query('SELECT * FROM `info` WHERE `id` = 1', function(err, row) {
var jogo = row[0].jogo;
console.log(jogo);
});
The problem is, if I take out the var game of the function, it no longer works, however I needed it to leave the function to do other checks outside the function.
How can I do that?
Thank you.