Posts by Clebert Figueiredo • 16 points
4 posts
-
0
votes1
answer113
viewsA: Syntaxerror: Unexpected Identifier in /Users/apple/Documents/Nodejs/views/index.ejs while compiling ejs
You have set up the views 2 times? First configuration: app.set('views', './views'); app.set('view engine','ejs'); Second configuration: app.set('views', __dirname + '/views'); app.set('view…
-
0
votes2
answers212
viewsA: How to Keep the values of a variable, even when restarting the program, in Javascript
You can use Localstorage, it stores the data until the system changes/removes or is done manually. if you are interested in using, in this site you get more information:…
-
0
votes1
answer451
viewsA: MVC Web Standard with Nodejs
buddy, all right? Using Node.js you cannot display dynamic content within an HTML page. To do this, there is a package called EJS, made for exactly what you need. If you already have an HTML file,…
-
-1
votes2
answers299
viewsA: Do I need to open a Mysql connection for each PHP query?
Hi, Pedro, all right? You can create a file to contain the connection to Mysql and embed it within it. This way, the connection to the database will already be open and you can make your queries.…