IRM Logs
$daydate=date("Y-m-d");
$query="(select machine, priority, date1, message from syslog where machine != 'irm' and date1 like '$daydate%') union (select said, said as priority, messagedatetime as date1, message from sa_log where messagedatetime like '$daydate%') order by date1 desc limit 24";
$sth = $adb->prepare($query);
if($sth)
{
$res = $sth->execute();
$numRows = $sth->rows();
PRINT "