Saturday 4 November 2017

node.js - Node JS SQL prevent sql injection

How to prevent sql injection. I have this sql
query.




db.query('SELECT
data FROM '+(server)+'.users WHERE user =
1');

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...