How do I insert a table name into a mysql query with ExpressJs?
I'm trying to use this to get contents of a specific table: let tablename = req.body.login connection.query('SELECT * FROM ?', tablename, (err, rows) => { if (err) throw err res.send(rows) }) But due to tablename being a string, it gets…