Skip to content

Conversation

@majdjadalhaq
Copy link

No description provided.

@bnhoogendijk bnhoogendijk self-assigned this Dec 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct and well structured answer 😀

Comment on lines +2 to +3
name: `' OR '1'='1`
code: `' OR '1'='1`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

careful with the quotes and the ticks 😀

Comment on lines +7 to +10
function getPopulation(countryTable, name, code, cb) {
const sql = `SELECT Population FROM ?? WHERE Name = ? AND code = ?`;

conn.query(sql, [countryTable, name, code], function (err, result) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if the ? / ?? notation works, but I get the idea of variables :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants