Last active
January 9, 2019 16:10
-
-
Save AvanthikaMeenakshi/cf57035df4a69141fa7508e875ca9ffa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
router.post('/new', function(req, res, next) { | |
res.locals.connection.query('insert into members(name,email) values(''+req.body.name+'',''+req.body.email+'')', function (error, results, fields) { | |
if(error) throw error; | |
res.send(JSON.stringify(results)); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment