Answer the question
In order to leave comments, you need to log in
Why doesn't the INSERT query through ${} work?
When trying to query
var query = `INSERT INTO users (name, phone) VALUES (${data.name}, ${data.phone})`;
Gives an error that the data.name column does not exist (i.e., the column "Boris", "Ivan" does not exist).
How to make a request?
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