Consuming Mysql with javascript

Asked

Viewed 48 times

-1

I have a database using Mysql but the server side does not run Ode, is it possible to consume a database using an Ajax request for example? Using Javascript

1 answer

2

No, you should not make requests to the database in the frontend of your application, to many reasons not to do something like this and security is perhaps greater.

The Ajax function in particular serves to perform requests to your backend where the logic of your application and transactions with the database are performed, this function cannot be used to perform requests to the database directly.

If it is a requirement to use Javascript to perform transactions with the database, you must create a backend application with nodejs to perform these operations.

  • Simm I thought of all the reasons to do this and I gave up kkk but is that for now I can not develop a backend I will have to stay with the same JSON kkk Thanks for the reply.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.