-1

I want to access MySQL database on my local machine only using HTML and JavaScript. I don't want to involve any scripting which would require a webserver. How to achieve this?

rtruszk
  • 3,884
  • 13
  • 35
  • 53

3 Answers3

0

You're looking for Ajax it seems

AJAX is the art of exchanging data with a server, and updating parts of a web page - without reloading the whole page.

As @Rayon implied... You will need server side scripting.

odedta
  • 2,372
  • 4
  • 20
  • 47
0

JavaScript can only do stuff on the client ( or Node.js? ). You must use a server-side scripting language like PHP to get information from a MySQL database.

You can use AJAX to pull information.

alquist42
  • 719
  • 1
  • 8
  • 21
0

You can use node.js for this purpose.

Milan Saha
  • 865
  • 11
  • 12