Jump to content


Photo

php order by


  • Please log in to reply
5 replies to this topic

#1 Eugene

Eugene
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 25 July 2006 - 05:18 PM

Can anyone give me like an idea on how to create an 'order by' script without using mysql.

#2 cmgmyr

cmgmyr
  • Members
  • PipPipPip
  • Advanced Member
  • 1,278 posts
  • LocationUSA

Posted 25 July 2006 - 05:20 PM

what are you trying to order? can you give some more details?

#3 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 25 July 2006 - 05:21 PM

If your data is in an array, you can use something like asort, or many of the other sort functions for arrays. However It'll be easier to use the ORDER BY clauase to order the results.

#4 Eugene

Eugene
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 25 July 2006 - 05:23 PM

If your data is in an array, you can use something like asort, or many of the other sort functions for arrays. However It'll be easier to use the ORDER BY clauase to order the results.


Thanks!

#5 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 25 July 2006 - 05:37 PM

Please visit and read the link in my signiture.

#6 Eugene

Eugene
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 25 July 2006 - 05:45 PM

Please visit and read the link in my signiture.

Please visit this link.
I call it: How to Answer questions - The smart way. http://www.catb.org/...s.html#id266392




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users