Answer the question
In order to leave comments, you need to log in
How to use SQL queries in JavaScript?
Hello. Tell me, is it possible to use SQL queries in JavaScript bypassing PHP? How should the syntax of such queries be formatted?
How safe is it, if possible? I read that in this case the user can independently change the request and drop the database.
PS At the moment, it is necessary to select a random record from the data table by its primary key and display it on an html page.
Answer the question
In order to leave comments, you need to log in
I think it's easier to give root from the server, let users make any requests
From JavaScript, bypassing PHP, you can execute a request using Node.js or IO.js
You can't do that. Firstly, it is not safe, the villains can not only drop the database, but also steal passwords and confidential data. Secondly, this is a crooked architecture that will end in an unsupported arctic fox.
Discover REST.
Hello. Can you tell me if it is possible to use a gas burner to access the nasopharynx through the lower back, bypassing the mouth opening? How should such an operation be carried out?
How safe is it, if possible? I have read that in this case the patient may become charred and throw back his hooves.
PS At the moment it is necessary to cut tonsils.
If it is possible to connect to mysql remotely, then you can. You can give the user access only to select, then it will not be able to drop.
But in any case, your option is not safe and will only work within your home network to drive.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question