0
Sie können meine überprüfen database classErste falsche Daten aus der Datenbank
wenn ich nennen diese Methode
public function getNote() {
$epreuve = $this->_db->get('module', array('concour_code', '=', $this->data()->concour_code));
$id = $this->data()->ID;
foreach($epreuve->results() as $epreu){
$epreu_code = $epreu->code;
echo "<tr>";
echo "<td>".$epreu->epreuve_code."</td><td>".$epreu->designation."</td>";
$module = Database::getInstance()->query("SELECT note_condidat.note,note_condidat.condidat_concour_id,note_condidat.module_code
FROM note_condidat,
WHERE note_condidat.condidat_concour_id = {$id} AND note_condidat.module_code = {$epreu_code} ");
foreach($module->results() as $mod){
echo "<td>".$mod->note."</td>";
}
echo "</tr>";
}
}
Hinweis: $ this-> data() -> ID return Benutzer-ID
Ich bekomme falsche Daten !! er Kenntnis von der Modultabelle nehmen nicht von Notentabelle
Wo kommt, dass 8 kommen aus/was es bezieht in den Tabellen? Es gibt nichts hier, um etwas anzuzeigen ist falsch, aber das letzte Bild .. – Matt
kam es aus der Modul-Tabelle .... [Modul-Tabelle] (http://www.hostingpics.net/viewer.php?id=422656Ca222ture.png) Ich möchte die Notiz aus der Hinweistabelle erhalten ... wenn module_code = module.code AND condidat_concour_id = users.ID – acharmat