jainilvachhani
jainilvachhani

Reputation: 904

Using HTML/Js to access SQL database

Is there any way I could use HTML or JavaScript to make GET/POST requests directly on SQLite database. I want to add rows to the database and be able to retrieve data and display it on a webpage?

P.S. I know I could use PHP but I am not very comfortable with it.

Upvotes: 0

Views: 544

Answers (1)

code-mocker
code-mocker

Reputation: 51

I am not sure what your application requirements are, It is not advisable to query SQL directly from the client. Although you can use library like:

http://www.js-data.io/docs/js-data-sql

which has a SQL adapter so that you can query it directly using JS.

Upvotes: 1

Related Questions