#1
  1. No Profile Picture
    krazykritter
    Guest
    Devshed Newbie (0 - 499 posts)
    I'm looking to find out how to sort groups without having to create multiple pages for each of the different groups that i wish to sort. So that in the end the user cna sort ascending/decending and each column as they wish.

    Thanks,

    Matthew
  2. #2
  3. No Profile Picture
    davidn
    Guest
    Devshed Newbie (0 - 499 posts)
    Use mysql's "order by" phrase in your select statement to determine ordering; this makes the code you use to convert from data -> html presentation pretty much independent of any ordering. Use a query string in the HTML you place in the column headers that calls the same php file; all you do is use that query string when you need to construct your select statement.

Similar Threads

  1. How to output multiple paragraphs from mysql
    By mrsmile25 in forum PHP Development
    Replies: 2
    Last Post: February 13th, 2004, 04:53 PM
  2. Check MySQL Version thru PHP
    By wolftrap1 in forum PHP Development
    Replies: 2
    Last Post: February 11th, 2004, 09:51 PM
  3. Replies: 5
    Last Post: February 11th, 2004, 03:18 AM
  4. PHP MySQL sorting
    By gyppo100 in forum PHP Development
    Replies: 1
    Last Post: February 4th, 2004, 08:28 AM
  5. Replies: 0
    Last Post: January 30th, 2004, 02:22 PM

IMN logo majestic logo threadwatch logo seochat tools logo