Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to connect with server side database using pure html5?

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

like image 352
Arjun Bora Avatar asked May 24 '11 06:05

Arjun Bora


1 Answers

HTML5 is just a static document, so it can't access a server, but you can use JavaScript for that. No, you can not access a server-side MySQL database from a web browser without server side scripts, since MySQL doesn't provide a http-interface directly.

If you don't want to learn a common server side language, you could use Node.js to be able to use JavaScript on the server side.

like image 134
Jonas Avatar answered Oct 02 '22 23:10

Jonas