Ver original$consulta = "select cod_alumno, avg(definitiva)from notaswhere cod_alumno = ".$variableConElCodigoDelAlumno