Pass the good path on the required function :
var sqlConn = require('./db'); // or other path if the file db.js isn't on the same folder
but I see main.html
, you try to use a node.js code into html?
Pass the good path on the required function :
var sqlConn = require('./db'); // or other path if the file db.js isn't on the same folder
but I see main.html
, you try to use a node.js code into html?