Hi, i've been wondering how to solve this:
I want to count traffic in my download page i have tables (bytes and downloads)
Does any one have idea how to write code which will do something like:
SIZE TOTAL_DOWNLOADS = XXX
XXX + SIZE TOTAL_DOWNLOADS = XXX
XXX + SIZE TOTAL_DOWNLOADS = XXX
XXX + SIZE TOTAL_DOWNLOADS = XXX
$total = mysql_query("SELECT * FROM skins");
while ($b = mysql_fetch_array($total)){
$size = $b['size'] * $b['downloads'];
}
i was trying array_sum but it didn't work thanks in adv..