Re-sorting data in a table

Codes here !

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 7
Joined: Thu Dec 19, 2002 8:43 am

Thu Dec 19, 2002 9:47 am

My first post, Lets see how it does...

I have a page that displays the output from a DB table to an HTML Table. Which works fine. But, I want to be able to sort the data by clicking in the column headings.

I can see that all I need to do to achieve this is change the SQL statement to sort by the column name, but what is the best method of doing this within the page? Will I have to reload it and pass it a new value for the $query variable? if so what method do I use to do this?

Help would be great!!

Thanks :D

Oleg Butuzov
Last Samuray
Last Samuray
Posts: 824
Joined: Sun Jun 02, 2002 3:09 am

Fri Dec 20, 2002 3:50 am

links to sorting -> SQL querys to sorting

Post Reply