Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi everyone
i have database that have some field i wanna calcute how much of data in one fiels is A and how much is b and ...
mean i wanna have chat that show 10 % is a and 18% is b and ...
how can i do this
i use mysql and php and vb.net
Posted
Comments
WajihaAhmed 12-Aug-12 5:27am    
Your question is vague, elaborate the thing thats need to be computed.
I.explore.code 12-Aug-12 17:38pm    
there is free and open source data charting and graphing libraries available for .NET and the good thing is they are only one Google away. For PHP i reckon there must be similar libraries available.

1 solution

How are you using PHP AND VB.NET ? There are free charting libraries, but it sounds to me like you're asking how to write basic SQL. Use 'Select count' to get the count of each type of field, and a total, to derive a %
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900