or Show Average i have this :
$item = mysql_query("SELECT AVG(top) AS total FROM " . "$config_ccms_prefix" . "news where id='$id'");
while ($cms = mysql_fetch_assoc($item)) {
$avg = ceil(($cms[total]),0.5);
}
//......
example : i need to round up if $ccms[total] = 3.4 to 3.5 or 7.8 to 8 or 9.3 to 9.5 BUT not round 9.5 to 10 or 4.5 to 5 .Actually, I'm not sure it is possible.
$avg not work for me !!