Hi...
I'm working on a problem with a query, and I am not sure really how to accomplish it.
What I have is a table like below:
id | one | two | three | four | five |
-------------------------------------------------
1 | 4 | 5 | 8 | 4 | 9 |
2 | 3 | 4 | 6 | 4 | 7 |
3 | 1 | 0 | 3 | 1 | 8 |
4 | 0 | 4 | 4 | 0 | 2 |
I need to capture the number of fields that have a result of "4".
So, in the example above, the result should be "6". Or, the end result anyway.
How do I construct a query that could accomplish that? I've tried mysql_num_fields, and of course that doesn't work.