Averaging Data from a Database and Automatic Dates

From: Date: Wed, 25 Oct 2000 23:15:22 +0000
Subject: Averaging Data from a Database and Automatic Dates
Groups: php.general 
Request: Send a blank email to php-general+get-21966@lists.php.net to get a copy of this message
Hi, I am trying to make a product review database, and I want to have a dynamic image graph generated (I figured that out). But, I need the average of a column of numbers in the database, without previously knowing how many numbers are in the column. Do I do a counting loop, count the number of entries in that colummn, then add up all the numbers in that column and divide them by the number of entries? How do you sum all the numbers in a column? Thanks in advance. And, how do people do the automatic dates that are hidden from the user and saved as a variable? Do you do something with system time or something? Thanks, Austin Carpenter _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.

« previous php.general (#21966) next »