mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-01-07 09:00:07 +01:00
- insert all new fields from the database - own page for each function - overview for last 50 alarm of all function in one
12 lines
365 B
PHP
12 lines
365 B
PHP
<?php
|
|
|
|
|
|
//read all
|
|
$db->query("SELECT id, time, fms as data, 'fms' AS typ FROM ".$tableFMS." UNION ALL SELECT id, time, zvei as data, 'zvei' AS typ FROM ".$tableZVEI." UNION ALL SELECT id, time, ric as data, 'pocsag' AS typ FROM ".$tablePOC." ORDER BY time DESC");
|
|
$Rows = array();
|
|
while ($daten = $db->fetchAssoc())
|
|
{
|
|
$Rows[] = $daten;
|
|
}
|
|
$tpl['lastAla'] = $Rows;
|