So, I have a database where each user has a row, and aswell as username, password etc. the fields count how many times each user clicks on a certain link. For example, a sample row might look like this:
[FONT=Lucida Console]
Username | Password | Link A | Link B | Link C | Link D | Link E
Somedude | Pass1234 | 4 | 2 | 16 | 9 | 0 |
[/FONT]
Now, say I wanted to let a user see what their three most clicked on links were?
I.e.
"You've clicked on:
Link C 16 times;
Link D 9 times;
and Link A 4 times!"
How could I do that? Thanks in advance. 🙂
EDIT- Don't think I made myself too clear, I don't want to just echo out the values of the fields, I want to take only the TOP THREE most clicked on links.