How to Sort A Dynamic Database

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
KSL
Forum Newbie
Posts: 5
Joined: Thu May 01, 2008 6:39 am

How to Sort A Dynamic Database

Post by KSL »

I have a database where the data is pulled from a MySql Database into a recordset and displayed on my page.

What i am looking to do is have a function at the top of the page to allow the user to sort the tables by one of the displayed fields.

The page i am looking to do this on is here
http://www.key-services.co.uk/Cyprus_Re ... ttings.php

I am not looking to have the user click the colombe header, i would rather them be able to click a link at the top of the page so they can sort by Location, Price, Room Numbers Etc. maybe with a Menu Box or something Similar.

Thank you in advance for any help received.
Post Reply