Seo Forum

Coding & Programming => PHP Forum => Topic started by: manvbf on 10-17-2011, 02:12:57

Title: Selecting field with highest value in MySQL with PHP
Post by: manvbf on 10-17-2011, 02:12:57
On my website, I plan to make the navigation dynamic by letting my users dictate what links they see at all times. What I mean is that, on my website, I have 13 main links. But, in my header I plan to put 6 of the links there for easy access. But instead of the user choosing which one, I have an idea that when a user visit one of the links, PHP adds 1 to the relevant MySQL field, and the links with the highest numbers in their field is displayed at the top.

That's all fine, and I have many ideas on how to do that. But I need to find which 6 fields has the highest values between the 13 fields, and I have no idea how to do that. Do you have any ideas? Thanks.