#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    2
    Rep Power
    0
    Does anyone know how to sort an array once its been recieved by the MYSQL select??? Thanks!
    Chris Madson
  2. #2
  3. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    19
    RTFM under array functions: asort(), arsort(),ksort(), krsort()
  4. #3
  5. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Location
    Brussels, Belgium
    Posts
    14,642
    Rep Power
    4492
    If you're talking about sorting the rows, you do that in your mysql SELECT command using GROUP BY, ORDER BY, etc....

    Check out the manual....love those manuals....

    ---JH

    ------------------
    *************************************************************
    * The manual can probably answer 90% of your questions...
    *
    * PHP Manual. www.php.net/manual
    * MySQL Manual: www.mysql.com/documentation/mysql/bychapter
    *************************************************************
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    2
    Rep Power
    0
    Thanks for the replies. The question was more along these lines, I have read the manual and was looking for more direct user knowledge, since having implemented it like in the book, I was unable to get it to work. Thanks for helping though.
    Chris Madson

Similar Threads

  1. Help needed with array sorting
    By frontsys in forum PHP Development
    Replies: 1
    Last Post: January 13th, 2004, 04:56 PM
  2. array sorting problem
    By ninjured in forum PHP Development
    Replies: 3
    Last Post: December 26th, 2003, 10:25 PM
  3. multi dimensional arrays - Can't grasp how to?
    By Kaleina in forum PHP Development
    Replies: 17
    Last Post: November 5th, 2003, 03:18 PM
  4. sorting though array returning hightes number
    By Germanjulian in forum PHP Development
    Replies: 3
    Last Post: October 13th, 2003, 06:54 AM
  5. problem with array
    By Geekoidxp in forum PHP Development
    Replies: 3
    Last Post: October 12th, 2003, 01:22 PM

IMN logo majestic logo threadwatch logo seochat tools logo