Skip to content

Instantly share code, notes, and snippets.

Avatar

Maxwell "ꓘ" Dulin mdulin2

View GitHub Profile
@mdulin2
mdulin2 / ExampleQueryInMySqlJs.js
Created Feb 23, 2022
Using mysql js's 'query with parameteritized variables.
View ExampleQueryInMySqlJs.js
...
connection.query(
"SELECT * FROM accounts WHERE username = ? AND password = ?",
[username, password],
function (error, results, fields) {
...
});