I'm tying to calculate the percentage in a php script

  $remain_percent = $remaining / $total;

  where $remaining = 11 and $total = 25 thus I have:
11/25

But when I echo out $remain_percent I get 25.

Any clue as to why?

Pat Newberry
www.gypsyfarm.com


The php_mysql group is dedicated to learn more about the PHP/MySQL web database possibilities through group learning.



SPONSORED LINKS
American general life and accident insurance company American general life insurance company American general life
American general mortgage American general life insurance Computer internet security


YAHOO! GROUPS LINKS




Reply via email to