BOSWatch/www/old_webend/tpl/content.overview.php
Schrolli 87c1e9c307 edit in old_webend
- more information in overview page with the mysql concat() method
2015-07-14 11:01:15 +02:00

12 lines
490 B
PHP

<?php
//read all
$db->query("SELECT id, time, concat(fms, ' Stat:', status, ' Dir:', directionText) as data, description, 'fms' AS typ FROM ".$tableFMS." UNION ALL SELECT id, time, zvei as data, description, 'zvei' AS typ FROM ".$tableZVEI." UNION ALL SELECT id, time, concat(ric, ' ', functionChar) as data, description, 'pocsag' AS typ FROM ".$tablePOC." ORDER BY time DESC LIMIT 25");
$Rows = array();
while ($daten = $db->fetchAssoc())
{
$Rows[] = $daten;
}
$tpl['lastAla'] = $Rows;