Sorry folks but I'm starting to feel stupid. Anyway I have the following problem. I am trying to access a MySQL database from PHP by running the following command.
$stmt = $this->conn->prepare("SELECT * FROM `pricelist` WHERE $name = :string"); // how to handle $name??
$stmt->bindParam(':string', $string, PDO::PARAM_STR);
Unfortunately I don't know what to put there because it's not passed as a string since it's my column name.
am unfortunately still new to PHP and do not quite understand it, thank you :D