Selecting field with highest value in MySQL with PHP

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

Offline manvbfTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 1
  • 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
0 Replies
915 Views
Last post 01-11-2014, 10:47:19
by Blogger-Aassif
0 Replies
956 Views
Last post 12-23-2015, 04:45:59
by chinmay.sahoo
0 Replies
746 Views
Last post 01-31-2017, 06:07:27
by chinmay.sahoo
5 Replies
1573 Views
Last post 03-28-2017, 01:12:03
by rajeshmehra615
3 Replies
308 Views
Last post 09-30-2017, 02:54:40
by jasminekour12