Home > Software design >  How to add and show data from database (mysql) in visual studio code (html)
How to add and show data from database (mysql) in visual studio code (html)

Time:08-18

Im learning in how to make a web page, now i need to show all the data from the database i created but i dont know how and i dont find any answers.

CodePudding user response:

HTML is a document markup language. It is designed to describing the semantics of text and associating meta data with them. It supports the application of stylesheets for presentation and the execution of JavaScript.

HTML has no features for connecting to databases. For that you need a programming language.

You can generate your HTML using a programming language. Typically you will do this server-side (so you require an HTTP server with support for the programming language you are using) and use a template engine.

You could also use client-side JavaScript to connect to a web service to get the data. (The web service being responsible for getting the data from the database and presenting it to HTTP clients in a structured format, such as JSON). You would need to pick a server-side programming language to write the web service in.

CodePudding user response:

Maybe this can help you.

Also, have a look at this.

  • Related