i want to use a variable in my Where clause like this :
con.query("SELECT * FROM vehicules WHERE "myvariable"=?",myothervariable,function (err, result)
{
// some code
});
it don't seems to work . is that even possible ?
EDIT
When i try this
con.query("SELECT * FROM vehicules WHERE 'myvariable'=?",myothervariable,function (err, result)
i got this as output
SELECT * FROM vehicules WHERE 'Modele'='X5'
Modele is my right column name but how can i remove the ' ' ?