I want to make a difference between big and small letters when checking if the key is correct. I have this query:
$stmt = $db->prepare("SELECT DISTINCT * FROM table WHERE id=? AND key=?
COLLATE utf8_general_ci");
$stmt->bind_param("is", $id, $key);
$id = $_POST[id];
$key = $_POST["key"];
$stmt->execute();
With this, I get a message:
Fatal error: Call to a member function bind_param() on boolean
So what's wrong with my query?!