This commit is contained in:
Andreas Österreicher
2007-07-11 13:33:51 +00:00
parent f9652930d8
commit dd14a03129
14 changed files with 122 additions and 1050 deletions
+1 -1
View File
@@ -701,7 +701,7 @@ class prestudent extends person
function getLastStatus($prestudent_id)
{
$qry = "SELECT * FROM public.tbl_prestudentrolle WHERE prestudent_id='$prestudent_id' ORDER BY datum DESC LIMIT 1";
$qry = "SELECT * FROM public.tbl_prestudentrolle WHERE prestudent_id='$prestudent_id' ORDER BY datum DESC, insertamum DESC LIMIT 1";
if($result = pg_query($this->conn, $qry))
{
if($row = pg_fetch_object($result))