Hello,
I have a table that looks like this:
+----+-------------+-------+-------+-----+
| ID | Player Name | Col 1 | Col 2 | ... |
+----+-------------+-------+-------+-----+
| 01 | Some Guy | 2 | 3 | ... |
+----+-------------+-------+-------+-----+
the ... represents a (technically) unknown amount of columns.
What I want is to select the row where Player Name matches my search, and get the sum of the Col 1 -> Unknown column values.
So... something like
SELECT SUM(Col1 -> Unknown) WHERE `Player Name`='$name';
Any help is appreciated.
-- Turt2Live