Using PHP and MySQLi, Can I also pass the name of the column (field) as parameter?
for example in following example I would like to list all users which they column admin
has flagged by 1
$sql = "SELECT * FROM `suser-tbl` WHERE ?=1 AND udepartment =?";
As you can see I used the first ?
placeholder in the position of the column name.