La query string debe ser formada dinámicamente a partir de los filtros de búsqueda que te lleguen.
Ejemplo ficticio:
Código PHP:
$alumno = $_REQUEST['alumno'];
$curso = $_REQUEST['curso'];
$filtros_where = array();
if($alumno)
$filtros_where[] = "alumno = '".$alumno."'";
if($curso)
$filtros_where[] = "curso = '".$curso."'";
if($filtros_where && is_array($filtros_where))
$cadena_where = "WHERE ".implode(" AND ", $filtros_where);
$query = "SELECT * FROM tabla_cursos ".$cadena_where;
// etc... etc... etc...
PD: El código anterior no esta probado, es solo orientativo.
Saludos!