How to connect to a server database using pure html5?

Can we access the server-side database using pure html5 (i.e. without using PHP, ASP .... or any other backend language)? We can use the web sql database, but it is stored on the client side. I need to access a server-side database (possibly mysql or whatever).

+8
html5 database-connection
source share
1 answer

HTML5 is just a static document, so it cannot access the server, but you can use JavaScript to do this. No, you cannot access the MySQL server database from a web browser without server-side scripting, since MySQL does not provide an HTTP interface directly.

If you do not want to learn a common server language, you can use Node.js to be able to use server-side JavaScript.

+10
source share

All Articles