skip to Main Content

Can't use the rows being retrieved from my database to build <li> items – Jquery ajax

app.get('/api/getTransactions/', function(req, res){ console.log("GET: Transactions"); let sql = 'SELECT * FROM balance;'; db.all(sql, [], function(err, rows){ var result = {}; if(err){ res.status(404); result["error"] = err.message; } else { console.log(JSON.stringify(rows)); res.json(rows); } }); }); function createTL() { $.ajax({ method: "GET", url:…

VIEW QUESTION
Back To Top
Search