Image

Imagehalkeye wrote in Imagephp_dev

Can someone give me some help?
It seems sorta like a hack.. and the pidcount and count arn't really working...

Specificly the part like:
foreach ($trating as $temp_name) {
$count = 0;
$pidcount = 0;
list($name,) = each ($trating);
foreach ($temp_name as $pid) {
$pidcount++;
foreach ($pid as $vote) {
$ratings[$name] += $vote;
if ($count != 0) $ratings[$name] /= 2;
$count++;
$total[$name] = $count;
$pidtotal[$name] = $pidcount;
}
}
}

see here for full source: http://halkeye.net/texts/mike/functions.txt