= getConnection()
const queryString = "INSERT INTO users(?,?)"
const firstName = req.body.first_name
const lastName = req.body.last_name
console.log("First name: " + req.body.first_name)
connection.query(queryString, [firstName, lastName], (err, rows, fields) => {
console.log(err)
res.end()
})
})
I am using it like this
Обсуждают сегодня