All pastes #730185 Raw Edit

Something

public text v1 · immutable
·published 2007-10-08 23:50 UTC
rendered paste body
$sql = "SELECT AVG(votes) AS votes FROM voting";
$query = mysql_query($sql) or die (mysql_error());

while($result = mysql_fetch_array($query)) { 
 $avg = $result['votes'];
 echo '&israte=' . round($avg,2);
}