sql_query("select * from ".$prefix."_blocked order by id desc"); $files = $db->sql_numrows($result); $latest_ban = $db->sql_fetchrow($result); $bann_date = date("Y.m.d H:i:s", $latest_ban[date]); $ip_l = long2ip(-(4294967296-$latest_ban[ip_from])); // this is what is on the static part of the block $content .= "

"._baninfo."

Latest attempt:
$bann_date

".$latest_ban['banned']." on $ip_l

\n"; // IP's to scroll section if ($usemarquee == 1) { $content .= "
"; } $content .= "
$totalbanned: $files

"; $a = 1; $sql = "SELECT ip_from, ip_to, pers_info FROM ".$prefix."_blocked ORDER BY id DESC"; $result = $db->sql_query($sql); while ($row = $db->sql_fetchrow($result)) { $ip_from = ereg_replace("_", " ", $row[ip_from]); $ip_from = long2ip(-(4294967296-$ip_from)); if($row[ip_to] != '0') { $ip_to = long2ip(-(4294967296-$row['ip_to'])); $content .= "$row[pers_info] $a: $ip_from -
         $ip_to
"; } else { $content .= "$row[pers_info] $a: $ip_from
"; } $a++; } ?>