Monday, 17 April 2017

Populate MySQL table entries in dropdown on page in Node.js

I would like a drop-down menu displayed on my .ejs page where I can select a user from a users table from my database (myDatabase) based on the name element.

I found this page https://www.w3schools.com/howto/howto_css_dropdown.asp which explains the html for creating an HTML dropdown, but I'm unsure how to make it dynamic so that it only lists the names of existing entries from the users table in myDatabase.



via velkoon

No comments:

Post a Comment