sitNsmile
01-30-2010, 09:31 AM
$abcd = round($rate_yes / $rate_no * 100);
rating for both fields are +1(s)
anyone know how to tell this to tell me the percent out of a 100%
Right now this shows me % like 157%..etc I want it to be out of a 100%
so for
rate_yes = 10
rate_no = 7
Thats the votes that are logged in the DB.
the real % comes out to 157%, but how do I get it to come out to a percent by 100% so it cant go over
Thanks
rating for both fields are +1(s)
anyone know how to tell this to tell me the percent out of a 100%
Right now this shows me % like 157%..etc I want it to be out of a 100%
so for
rate_yes = 10
rate_no = 7
Thats the votes that are logged in the DB.
the real % comes out to 157%, but how do I get it to come out to a percent by 100% so it cant go over
Thanks