mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 09:52:22 +00:00
i
This commit is contained in:
@@ -362,7 +362,35 @@ class beispiel
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function check_anzahl_studentbeispiel($beispiel_id)
|
||||
{
|
||||
if(!is_numeric($beispiel_id))
|
||||
{
|
||||
$this->errormsg = 'Beispiel_id muss eine gueltige Zahl sein';
|
||||
return false;
|
||||
}
|
||||
$qry = "SELECT count(*) as anzahl FROM campus.tbl_studentbeispiel WHERE vorbereitet = true and beispiel_id='$beispiel_id'";
|
||||
|
||||
if($result = pg_query($this->conn, $qry))
|
||||
{
|
||||
if($row = pg_fetch_object($result))
|
||||
{
|
||||
$this->anzahl_studentbeispiel = $row->anzahl;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->errormsg = 'Fehler beim laden der Anzahl der Einträge in Student_Beispiel';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->errormsg = 'Fehler beim laden der Anzahl der Einträge in Student_Beispiel';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// **
|
||||
// * Prueft die studentbeispiel Daten auf gueltigkeit
|
||||
// *
|
||||
|
||||
Reference in New Issue
Block a user