Does anyone know if it is possible for me to do a search in the database using a variable as the name of where to look in the database, type as follows:
$consulta = mysqli_query($link, "SELECT * FROM alunos WHERE $turma = '$grupo'");
Where the variable $turma
would be defined by the user.