$result6 = mysql_query("SELECT AVG(rating) FROM Rreview WHERE model='$model'",$db);
$query = mysql_query($result6,$db);
$row = mysql_fetch_array($result6);
$average = $row["AVG(rating)"];
the above code returns the average of the 'rating' field in the format 0.0000 (four decimal places).
How can I format the output ($average) so that it is of the form 0.00 (only two decimal places)?
TIA,
/frank