re: Build a simple app using Node JS and MySQL. VIEW POST

FULL DISCUSSION
 

Hi Atauba,

I'm tring to learn node js, Your artical is so nice and esy to understan but i have the following error please help me to fix this issue.

Thanks

/var/www/html/node-mysql-crud-app/routes/index.js:11
title: Welcome to Socka | View Players,
^

SyntaxError: Unexpected identifier
at Module._compile (internal/modules/cjs/loader.js:760:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object. (/var/www/html/node-mysql-crud-app/app.js:8:23)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)

 

I found the answer.. Have to modified title like below.

Thanks

res.render('index.ejs', {
title: 'Welcome to Socka | View Players',
players: 'result'
});

code of conduct - report abuse