Gossamer Forum
Home : General : Databases and SQL :

Sum only parts of an array

Quote Reply
Sum only parts of an array
I have set up a MySQL database that is holding information such a persons name, the date of entry and then how many of certain types of errors each person made on a certain day. Is there a function in PHP that can be set to only add certain elements of the database? Right now I have it set up where I specify each element I am adding, but in the future more elements may be added so I would like to automate this more. Thanks in advance.

Last edited by:

iwas5andhewas6: Jun 10, 2004, 6:40 AM