HabboxWiki needs you!
Are you a Habbo buff? Or maybe a rare trader with a bunch of LTDs? Get involved with HabboxWiki to share your knowledge!
Join our team!
Whether you're raving for rares, excited for events or happy helping, there's something for you! Click here to apply
Need a helping hand?
Check out our guides for all things to help you make friends, make rooms, and make money!


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

    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
    1,982

    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
    1,982

    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,107
    Tokens
    2,809

    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
    1,982

    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
  •