Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- **//Acredito que o problema está aqui.**
- msql = require('mysql'),
- connection = msql.createConnection({
- host: 'localhost',
- user: 'root',
- password : 'root',
- database: 'bd_barbearia'
- }),
- criarConexao: function(){
- connection.connect();
- },
- fecharConexao: function(){
- connection.end();
- },
- verificarUsuario: function(nome,senha){
- connect.query("call verificarCliente('"+this.nome+"','"+this.senha+"')", function(error,results){
- if(error) throw error;
- lista = JSON.parse(JSON.stringify(results[0]));
- resposta = String(lista[0].alert);
- return resposta;
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement