Create a Profile Page with Node.JS, Express, and MySQL | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Create a Profile Page with Node.JS, Express, and MySQL

I am creating a simple profile page using JS, Express, and MySQL. Any basic lessons will genuinely help. I need to know how to implement MySQL data to the "profile.ejs" page.

6th Mar 2022, 10:18 PM
Jonathan R Dameus
Jonathan R Dameus - avatar
2 Answers
+ 1
I found out that I had two app.get(‘profile’) method and now the page loads with no error after removing the un-needed one. More info found in the link below. https://stackoverflow.com/questions/71437157/how-to-implement-mysql-data-into-an-ejs-file-to-make-a-profile-page
13th Mar 2022, 7:12 AM
Jonathan R Dameus
Jonathan R Dameus - avatar
0
Jonathan R Dameus You can use any template engine to render your SQL database records. You can use <%= variablename => Check the below link https://youtu.be/wEqMxTJl-TE I hope this helps you You can follow this Instagram page for more code snippets Id: anonymous_me_0000
10th Mar 2022, 11:10 AM
B.VIDYADHAR VIJJU
B.VIDYADHAR VIJJU - avatar