Answer the question
In order to leave comments, you need to log in
How to make a query in sql?
Here is the given code:
connection.query(
'INSERT INTO `message` (email, name, message) VALUES (":email", ":name", ":message")',
{ email: req.body.email, name: req.body.name, message: req.body.message },
(err, result) => {
console.log(req.body);
console.log(req.body.name);
console.log(result);
res.send(result);
}
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question