diff --git a/manager/database.php b/manager/database.php index e18a440..0e1714d 100755 --- a/manager/database.php +++ b/manager/database.php @@ -306,11 +306,11 @@ class DataBase{ // on cherche le groupe associƩ $getNomGroupe = $this->pdo->prepare("SELECT g.nom ". "FROM utilisateur as u, groupe as g, appartenance as app ". - "WHERE app.identifiant = u.id_etudiant ". + "WHERE app.id_etudiant = u.identifiant ". "AND app.id_groupe = g.id_groupe ". - "AND app.id_semestre = :semestreUID ". - "AND u.identifiant = :etudiantUID ". + + "AND app.id_semestre = :semestreUID ". "ORDER BY g.nom"); $getNomGroupe->execute(array( ':etudiantUID' => $etudiantUID, diff --git a/page/career.php b/page/career.php index 1f8adde..f5c9d9d 100755 --- a/page/career.php +++ b/page/career.php @@ -54,7 +54,7 @@ if( $_SESSION['identifiant'] != null && $_SESSION['droits'] == 'student' ){ // s echo ''; echo "".$note['module']." - ".$note['modulelib'].""; echo ''.$note['intitule'].''; - echo ''.$note['valeur'].'/'.$note['base'].''; + echo ''.$note['valeur']." / ".$note['base'].''; echo ''.$note['coefficient'].''; echo ''; } @@ -108,7 +108,7 @@ if( $_SESSION['identifiant'] != null && $_SESSION['droits'] == 'student' ){ // s echo ''; echo "".$note['module']." - ".$note['modulelib'].""; echo ''.$note['intitule'].''; - echo ''.$note['valeur'].'/'.$note['base'].''; + echo ''.$note['valeur']." / ".$note['base'].''; echo ''.$note['coefficient'].''; echo ''; }