For some reason my PHP PDO sql search isn't turning up anything. I'm trying to implement some kind of search engine into my site, but I can't seem to get anything. I've been trying a bunch of different solutions up until now but the search keeps turning up empty, even given exactly the right parameters. The $find variable is entered by the user, and the $field variable is a dropdown list from which the user can choose what to search for, which returns values that equal the names of columns in the database.
$find = strtoupper($_POST['find']);
$find = "%" . $find . "%";
$field = $_POST['field'];
$qry = $conn->prepare("SELECT * FROM \"MovieDB\" WHERE upper(:field) LIKE :find%");
$qry->bindParam(':find', $find, PDO::PARAM_STR, 16);
$qry->bindParam(':field',$field, PDO::PARAM_STR,16);
$qry->execute();
$results = $qry->fetchAll();