include "./inc/connect.inc"; if ($_SERVER['QUERY_STRING'] == "last") { $result = DBi::connect()->query("Select tekst from trafinfo order by tid desc limit 0,1"); list($tekst) = $result->fetch_row(); echo stripslashes(html_entity_decode($tekst)); exit; } ?>
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 "| ".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))." |