I have some code for getting voting averages that works great:
$SQL4 = "SELECT AVG(value) AS avgRating FROM ratings_temp WHERE item = \"$id\"";
$result4 = mysql_db_query($db3,"$SQL4",$cid3);
print "Rating: " . mysql_result($result4,0) . "<br>";
The result is something like "Rating: 4.3750". Can someone tell me how to trim the number to 2 decimal places, like 4.37?