Click here to Skip to main content
13,595,984 members
Rate this:
Please Sign up or sign in to vote.
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
Posted 11-Aug-12 18:39pm
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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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 %

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web04-2016 | 2.8.180621.3 | Last Updated 13 Aug 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100