Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: SQL PHP MySQL VB.NET
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 11-Aug-12 18:39pm
rpm3d619
Comments
WajihAhmed at 12-Aug-12 5:27am
   
Your question is vague, elaborate the thing thats need to be computed.
gladiatron at 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
good
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 %
  Permalink  

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



Advertise | Privacy | Mobile
Web03 | 2.8.141022.1 | Last Updated 13 Aug 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

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