Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function user_info (login) {
- var info;
- this.pool.getConnection(function(err, connection) {
- if (err) throw err;
- connection.query('SELECT * FROM user WHERE login = ?', [login], function (error, results, fields) {
- info = results;
- connection.release();
- });
- });
- return info;
- }
Add Comment
Please, Sign In to add comment