Skip to content
Advertisement

How to make a workable SQL request for NodeJS file?

I have a js file to work with my local database, and a POST request is not working like it should – if I enter a specific row, it returns a correct result, but I need it to get the variable from post data. This type of entering query doesn’t work 🙁

Advertisement

Answer

You can try to use the “Prepared Statements”. As an example using your code:

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement