This commit is contained in:
Andreas Österreicher
2007-11-27 16:40:46 +00:00
parent cd9de2b5da
commit f5d4c0783f
7 changed files with 501 additions and 7 deletions
+6
View File
@@ -725,6 +725,12 @@ class prestudent extends person
function getLastStatus($prestudent_id)
{
if($prestudent_id=='' || !is_numeric($prestudent_id))
{
$this->errormsg = 'Prestudent_id ist ungueltig';
return false;
}
$qry = "SELECT * FROM public.tbl_prestudentrolle WHERE prestudent_id='$prestudent_id' ORDER BY datum DESC, insertamum DESC, ext_id DESC LIMIT 1";
if($result = pg_query($this->conn, $qry))
{