Im not sure how you would do it but you would need something that counts all clicks firstly. A loop that gets clicks in a numeric array array[0], array[1] etc.
$totalClicks = 0;
$clicks = array()
while ($row = mysql_fetch_assoc()) //your db fetch_array etc.
{
$totalClicks += $row['click'];
array_push($clicks, $row);
}
if (!empty($clicks))
{
$clicks_length = sizeof($clicks);
for ($i = 0; $i < $clicks_length; $i++)
{
echo (($totalClicks / 100) * $clicks[$i]['click']);
}
Not sure on how well that works (you will need to modify it quite a bit to get it to work the way you want but it should give you the underlining on how to do it.