Board index   FAQ   Search  
Register  Login
Board index php forum :: Database mySQL & php coding

Re-sorting data in a table

Codes here !

Moderators: macek, egami, gesf

Re-sorting data in a table

Postby fluff » 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
fluff
New php-forum User
New php-forum User
 
Posts: 7
Joined: Thu Dec 19, 2002 8:43 am

Postby Oleg Butuzov » Fri Dec 20, 2002 3:50 am

links to sorting -> SQL querys to sorting
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am


Return to mySQL & php coding

Who is online

Users browsing this forum: No registered users and 3 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.