Hi, I know how to count just one column in my table, but I want to count the following 14 columns and do the same for every record in my database, and then sort them based on whose name is top etc
Home Scorer 1, Home Scorer 2, Home Scorer 3, Home Scorer 4, Home Scorer 5, Home Scorer 6, Home Scorer 7, Away Scorer 1, Away Scorer 2, Away Scorer 3, Away Scorer 4, Away Scorer 5, Away Scorer 6, Away Scorer 7,
There are 200+ records some of which have scorers and some don't, I want to count every scorer name for every row and then display an overall total E.G "Dave Jones - 42, Alan X - 34" etc etc in a table, based on the entire table. I don't know if this is possible (I have done it for competition (a different column) before, but that's only 1), hopefully I have explained it in enough detail
I am using PHP to connect & get data from the MySQL database.
Thanks if anyone can help
Zack
Tags: