RE: [PHP] Generating percentages of numbers
| From: | PHPBeginner.com | Date: | Thu, 22 Feb 2001 11:14:43 +0000 |
| Subject: | RE: [PHP] Generating percentages of numbers | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41137@lists.php.net to get a copy of this message | ||
I have once requested a feature like this at PHP-DEV..
here's the code:
http://bugs.php.net/?id=7429
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
maxim@phpbeginner.com
www.phpbeginner.com
-----Original Message-----
From: Blake S. [mailto:blake@webintention.com]
Sent: Thursday, February 22, 2001 7:15 AM
To: php-general@lists.php.net
Subject: [PHP] Generating percentages of numbers
I have a database of numbers:
TOTAL HITS: 1000
PAGE 1: 500
PAGE 2: 250
PAGE 3: 250
How can I query these numbers and display back a percentage number? For
instance with the numbers above:
PAGE 1: 50%
PAGE 2: 25%
PAGE 3: 25%
Or is their a process by which to store numbers for easily getting this to
work?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net