$sql
Ip | Name | Total | Sent | Received | tcp | udp | icmp | http | smtp | ftp"; $r = pg_fetch_array($result); echo " |
"; if (strpos($ip, "/") === FALSE) echo "$ip | ".gethostbyaddr($ip); else echo "Total | $ip"; echo fmtb($r['total']).fmtb($r['sent']).fmtb($r['received']). fmtb($r['tcp']).fmtb($r['udp']).fmtb($r['icmp']).fmtb($r['http']). fmtb($r['p2p']).fmtb($r['ftp']); echo " |