Location: PHPKode > projects > ZorbIPTraffic > zorbiptraffic/zorbiptraffic/zorbflash.php
<?php
include "zorbconf.php";
include("zorblang$lang.php");
mysql_connect($dbhost,$dbuname,$dbpass);
$tab=mysql_list_tables($dbname);
$tab = $HTTP_POST_VARS['thisLetter'];
$qr = mysql_query("SELECT * FROM zhost");

// start output string with number of entries
$nrows = mysql_num_rows($qr);
$rString = "n=".$nrows;

for ($i=0; $i < $nrows; $i++) {
	$row = mysql_fetch_array($qr);
	$rString .= "&hostname".$i."=".$row['hostname']."&ip".$i."=".$row['ip'];
	$rString .= "&ratedown".$i."=".$row['ratedown']."&rateupld".$i."=".$row['rateupld'];
	$rString .= "&hostup".$i."=".$row['hostup'];
}

$rString .="&tithost999=".zorbtrans("Hostname");
$rString .="&titdwld999=".zorbtrans("Download");
$rString .="&titupld999=".zorbtrans("Upload");
$rString .="&nbhost999=".$nbhost;
echo $rString;
?>
Return current item: ZorbIPTraffic