I\'m trying to run the following query, and I\'m having trouble with the wildcard.
function getStudents() {
global $db;
$users = array();
You have to pass parameters to bind_param()
by reference, which means you have to pass a single variable (not a concatenated string). There's no reason you can't construct such a variable specifically to pass in, though:
$className = '%' . $this->className . '%';
$query->bind_param('s', $className);