Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2006
    Posts
    7,395
    Tokens
    2,222

    Latest Awards:

    Default Table Sorting... how???

    I want a table that has a search feature on it so you search for data in the table and where you can sort each column by ascending/descending or by numeric.

    How do I do it?
    Hi

  2. #2
    Join Date
    Jan 2006
    Location
    Kent
    Posts
    987
    Tokens
    0

    Default

    A table within a MySQL database? A table within your website that uses javascript to change the ordering? Be a bit more descriptive.
    This is our situation and we're happy to be here,
    I wouldn't change this place for anything.


  3. #3
    Join Date
    Nov 2006
    Posts
    7,395
    Tokens
    2,222

    Latest Awards:

    Default

    Quote Originally Posted by Joe! View Post
    A table within a MySQL database? A table within your website that uses javascript to change the ordering? Be a bit more descriptive.
    I don't have a mysql database for the table or a JavaScript although I will be keen on using the easiest method if somebody could show me a tutorial?

    I just want a table that I can sort.
    Hi

  4. #4
    Join Date
    Jan 2006
    Location
    Kent
    Posts
    987
    Tokens
    0

    Default

    Where will you be pulling the data from?
    This is our situation and we're happy to be here,
    I wouldn't change this place for anything.


  5. #5
    Join Date
    Nov 2006
    Posts
    7,395
    Tokens
    2,222

    Latest Awards:

    Default

    Quote Originally Posted by Joe! View Post
    Where will you be pulling the data from?
    The data is static on a webpage. I want to transfer this to what ever method is best so visitors can sort the data via ascending descending.

    It's a price comparison table.
    Hi

  6. #6
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Make a MySQL database with the fields in it, then pull the data from MySQL based on the selection.

    In your query:
    ORDER BY `id` ASC
    ORDER BY `id` DESC

    ORDER BY `price` ASC
    ORDER BY `price` DESC

    Like that.

  7. #7
    Join Date
    Nov 2006
    Posts
    7,395
    Tokens
    2,222

    Latest Awards:

    Default

    Quote Originally Posted by Dentafrice View Post
    Make a MySQL database with the fields in it, then pull the data from MySQL based on the selection.

    In your query:
    ORDER BY `id` ASC
    ORDER BY `id` DESC

    ORDER BY `price` ASC
    ORDER BY `price` DESC

    Like that.
    Ahh I see... thank you.
    Hi

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •