Hi,
I have an array which I am trying to total but having some problems. Any
help is appreciated.
Example: This is a hockey team and there are 20 players - I am selecting
the goals, assists, and points from each player and then want to have a
grand total of all goals, assists, and points.
Cannot you just make MaSQL count it?
$query = select sum(goals), sum(assists), sum(points) from roster;
Beauford.2002 wrote:
Hi,
I have an array which I am trying to total but having some problems. Any
help is appreciated.
Example: This is a hockey team and there are 20 players - I am
[EMAIL PROTECTED]
To: Beauford.2002 [EMAIL PROTECTED]
Cc: PHP General [EMAIL PROTECTED]
Sent: Sunday, March 02, 2003 11:10 AM
Subject: Re: [PHP] Arrays and MySQL
Cannot you just make MaSQL count it?
$query = select sum(goals), sum(assists), sum(points) from roster;
Beauford.2002 wrote:
Hi
On Sunday 02 March 2003 23:34, Beauford.2002 wrote:
Hi,
I have an array which I am trying to total but having some problems. Any
help is appreciated.
Example: This is a hockey team and there are 20 players - I am selecting
the goals, assists, and points from each player and then want to
On March 2, 2003 01:53 pm, Jason Wong wrote:
On Sunday 02 March 2003 23:34, Beauford.2002 wrote:
Hi,
I have an array which I am trying to total but having some
problems. Any help is appreciated.
Example: This is a hockey team and there are 20 players - I am
selecting the goals,
be appreciated.
From below - $totals[0][4] through $totals[19][4] , $totals[0][5] through
$totals[19][5], etc.
- Original Message -
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 02, 2003 4:53 PM
Subject: Re: [PHP] Arrays and MySQL
On Sunday 02 March 2003 23:34
6 matches
Mail list logo