-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,902
  • 13
  • 36
  • 53
user3073180
  • 105
  • 1
  • 13

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,430
  • 4
  • 24
  • 51
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
  • 739
  • 1
  • 8
  • 21
0

You can use node.js for this purpose.

Milan Saha
  • 905
  • 11
  • 12