mysql - PHP Number Format with a calculation -


i still relatively new @ sorry if seems easy fix, doing calculation , want answer present 2 numbers after decimal. right giving me results above table , not replacing numbers in table.

http://www.cnghl.biz/cnghldb/cnghlgoalieinfo.php?goalieid=71

this have set up

    print "<tr>"; print "<td><center>".$row['sea']."</center></td> "; print "<td><center>".$row['team']."</center></td> "; print "<td><center>".$row['gp']."</center></td> "; print "<td><center>".$row['min']."</center></td> "; $igaa = $row['ga'] * 60 / $row['min']; print $english_format_number = number_format($igaa, 2); print "<td><center>".$igaa."</center></td> "; print "<td><center>".$row['w']."</center></td> "; print "<td><center>".$row['l']."</center></td> "; print "<td><center>".$row['otl']."</center></td> "; print "<td><center>".$row['t']."</center></td> "; print "<td><center>".$row['so']."</center></td> "; print "<td><center>".$row['ga']."</center></td> "; print "<td><center>".$row['sa']."</center></td> "; print "<td><center>".$row['pct']."</center></td> "; print "<td><center>".$row['pim']."</center></td> "; print "<td><center>".$row['assists']."</center></td> "; 

}

could please show me how fix it, can correct answer, thanks.

you printing wrong variable:

print "<td><center>".$english_format_number."</center></td> "; 

Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -