Created
February 23, 2022 06:23
-
-
Save mdulin2/aceffcb0d554377edbeb20ed5f79172a to your computer and use it in GitHub Desktop.
Using mysql js's 'query with parameteritized variables.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
connection.query( | |
"SELECT * FROM accounts WHERE username = ? AND password = ?", | |
[username, password], | |
function (error, results, fields) { | |
... | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment