Answer the question
In order to leave comments, you need to log in
How to pass json to index.html(node.js)?
There is such a query in the database, and a selection in json format gets into line
connection.query("SELECT * FROM chat ORDER BY id DESC LIMIT 5", function(err, data) {
data.forEach(function(line){
console.log(line);
});
});
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