我被困@ express node js中的问题之一。我收到错误“未定义网址”
app.get("/id", function(req, res) {
var id = req.param("id");
connection.query('SELECT `url` FROM dynamic_url where id ='+req.param("id"), function (error, rows, fields) {
//how do i get the values of url here
res.send("value of url is " + url);
});
});