Variable to call where to search the database!

0

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.

    
asked by anonymous 22.11.2017 / 00:28

0 answers