 |

Übersicht über die Proseminare des Studienjahrgangs $jahrgang
 |
 |
 |
Name, Vorname
|
AG |
Zweig |
FPRNr |
";
$db = dbconnect();
$query = "SELECT stud.nachname, stud.vorname, stud.ag, stud.jahrgang, stud.stg, pros_proseminar.FPRNr FROM stud, pros_proseminar, pros_wunsch WHERE stud.uid = pros_wunsch.uid AND pros_wunsch.id = pros_proseminar.id AND pros_wunsch.prioritaet = \"0\" and pros_proseminar.jahr=\"$jahrgang\" and stud.durchgefallen != 'Y' ORDER BY stud.nachname";
$result = $db->query($query)
or die ("Cannot execute query");
while ($row = $result->fetch_array()){
echo "
$row[nachname], $row[vorname]
|
$row[ag]/$row[jahrgang] |
$row[stg] |
$row[FPRNr] |
";
}
if ( $res1=$db->query("select count(stg) from stud left join pros_wunsch using (uid) where (stud.stg='I' OR stud.stg='V' OR stud.stg='W') and stud.uid=pros_wunsch.uid and pros_wunsch.prioritaet=0 and stud.jahrgang=$jahrgang and stud.durchgefallen!='Y'") ){
if ( $row1=$res1->fetch_array() ) {
$result1=$row1[0];
} else $result1=0;
} else $result1=0;
if ( $res3=$db->query("select count(stg) from stud left join pros_wunsch using (uid) where stud.stg=\"F\" and stud.uid=pros_wunsch.uid and pros_wunsch.prioritaet=0 and stud.jahrgang=$jahrgang and stud.durchgefallen!='Y'") ){
if ( $row3=$res3->fetch_array() ) {
$result3=$row3[0];
} else $result3=0;
} else $result3=0;
if ( $res4=$db->query("select count(stg) from stud left join pros_wunsch using (uid) where stud.stg=\"R\" and stud.uid=pros_wunsch.uid and pros_wunsch.prioritaet=0 and stud.jahrgang=$jahrgang and stud.durchgefallen!='Y'") ){
if ( $row4=$res4->fetch_array() ) {
$result4=$row4[0];
} else $result4=0;
} else $result4=0;
if ( $res5=$db->query("select count(stg) from stud left join pros_wunsch using (uid) where stud.stg=\"S\" and stud.uid=pros_wunsch.uid and pros_wunsch.prioritaet=0 and stud.jahrgang=$jahrgang and stud.durchgefallen!='Y'") ){
if ( $row5=$res5->fetch_array() ) {
$result5=$row5[0];
} else $result5=0;
} else $result5=0;
echo "
|
 |
 |
 |
|
 |

Summen der Studienzweige
 |
 |
 |
Innenverwaltung
|
$result1
|
|
Finanzverwaltung
|
$result3
|
|
Rentenversicherung
|
$result4
|
|
|
 |
 |
 |
|
|