sorting colums after using POST

Discussion in 'PHP' started by mnymkr, May 7, 2007.

  1. #1
    I am using a form and POST to generate tables.

    the forum selects the cut and then you can choose the carat using the BETWEEN statement in the sql query.

    This all works fine, the trouble is I need to sort this table using only the values brought to the table from the POST variables....

    so i need to sort the carats but only from the values chosen in the forms....

    is this possible?
     
    mnymkr, May 7, 2007 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    Since a $_POST variable set is an array, I imagine you could use the sort() function to do something.

    http://us.php.net/sort

    Without knowing the code that the forum is using, it would be hard to say how difficult it would be to implement it.
     
    jestep, May 7, 2007 IP