Anzahl Lizenzen
This commit is contained in:
@ -32,6 +32,12 @@ if ($action == '') {
|
||||
$result = $db->query($query) or die("Cannot execute query");
|
||||
|
||||
while ($row = $result->fetch_array()) {
|
||||
|
||||
$result_rl = $db->query("SELECT $row[anzahl_lizenz]-count(*) Rest
|
||||
FROM jumi_noten_zus_saenger_zuord
|
||||
WHERE zsid = $row[zsid];");
|
||||
$row_rl = $result_rl->fetch_array();
|
||||
$row['restlizenz'] = $row_rl['Rest'];
|
||||
$table_data[] = $row;
|
||||
}
|
||||
$smarty->assign('table_data', $table_data);
|
||||
|
Reference in New Issue
Block a user