Hi Guys,
I have a table in mysql database called appearances, with an example below of the structure with the variable name at the top
Now as you can see each of the surnames have been saved into a record in the database.
Now what I want to do is create a php piece of code which looks in all the variable names and counts how many times harvey for example has been entered into the database. So it would look through all the variables and nomatter what $shirt variable they are in it will see:
Harvey = 3
and that is incremented every time a new record is added with Harvey in it?
Any ideas please?
Thanks
Chris
|