query("Select tekst from trafinfo order by tid desc limit 0,1"); list($tekst) = $result->fetch_row(); echo stripslashes(html_entity_decode($tekst)); exit; } ?> query("Select v_rdi from status where `type` = 'trafikinfo'"); list($tid) = $result->fetch_row(); echo "

Sidst opdateret: ".substr($tid,6,2).".".substr($tid,4,2).".".substr($tid,0,4)." ".substr($tid,8,2).":".substr($tid,10,2)."

\n"; $oDato = ""; $styl = ""; $dato = date("Ymd",strtotime("-30 days")); $result = DBi::connect()->query("Select tid, tekst from trafinfo where tid >= '{$dato}000000' order by tid desc"); echo "

Seneste 30 dage

\n"; while(list($tid, $tekst)= $result->fetch_row()) { if (substr($tid,0,8) != $oDato) { if ($oDato != "") { echo ""; } echo ""; $oDato = substr($tid,0,8); } echo "\n"; $styl = " style=\"border-top: 1px dotted #000000;\""; } if ($oDato != "") { echo "
".substr($tid,6,2).".".substr($tid,4,2).".".substr($tid,0,4)."  
".substr($tid,8,2).":".substr($tid,10,2)."  
"; echo stripslashes(html_entity_decode($tekst))."
"; } ?>