I\'m trying to run the following query, and I\'m having trouble with the wildcard.
function getStudents() { global $db; $users = array();
Another way to do this is:
SELECT id, adminRights FROM users WHERE classes LIKE CONCAT("%", ?, "%") && adminRights='student'
This is handy in case you have a dynamic result bind and only want to change the SQL query...