Selecting field with highest value in MySQL with PHP

Author Topic: Selecting field with highest value in MySQL with PHP  (Read 1595 times)

Offline manvbfTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 0
  • Posts: 123
  • Karma: 1
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.


Related Topics

  Subject / Started by Replies Last post
1 Replies
Last post 09-21-2010, 08:47:42
by kogee
5 Replies
Last post 11-29-2012, 02:42:12
by domainia
0 Replies
Last post 01-11-2014, 10:47:19
by Blogger-Aassif
0 Replies
Last post 04-27-2015, 07:20:30
by andredevilz
0 Replies
Last post 12-23-2015, 04:45:59
by chinmay.sahoo