* * Environment:
node.js express mysql**
question:
when mysql inserts article data, there is an error storing the details of the article, as follows:
You have an error in your SQL syntax; Check the manual that corresponds to your MySQL server version for the right syntax to use near" http://example.com/movies.json")
plain text content is fine, but there is a" code snippet "that seems to report an error.
(do I have to translate, find a method, just come into contact with node.js)
syntax says:
insert into article_list
(title,author,summary,is_top,catalog_alias,content)
values
("${req.body.title}",
"${req.body.author}",
"${req.body.summary}",
"${req.body.is_top}",
"${req.body.catalog_alias}",
"${req.body.content}")`;
as shown in the figure: