Rosekrans

Percentage Of Value In Graph

Recommended Posts

Hello there,

 

I wonder if anyone can help me please.

 

I have designed a form system, built with PHP, that adds values to a MySQL database. These values are basically ones and zeros with the occasional value running up to 9.

 

I have added a print screen form my database.

 

The end result I am aiming for, is to add up the number value fields and then get a percentage total. Then even if some values are zero in some of the 'value' fields you still get a percentage out of the total of fields.

 

For example Posture of max value can be a total of 6, but sub-total was 4, therefore it will only reflect as 67% on the graph. I have added a example of this, done through MS Excel.

 

Thank you for the assistance.

post-21704-0-04159600-1316685292_thumb.jpg

post-21704-0-60690800-1316685607_thumb.jpg

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now