Jump to content

Archived

This topic is now archived and is closed to further replies.

Eugene

php order by

Recommended Posts

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

Share this post


Link to post
Share on other sites
what are you trying to order? can you give some more details?

Share this post


Link to post
Share on other sites
If your data is in an array, you can use something like [url=http://uk2.php.net/manual/en/function.arsort.php]asort[/url], or many of the other sort functions for arrays. However It'll be easier to use the ORDER BY clauase to order the results.

Share this post


Link to post
Share on other sites
[quote author=wildteen88 link=topic=101824.msg403301#msg403301 date=1153848100]
If your data is in an array, you can use something like [url=http://uk2.php.net/manual/en/function.arsort.php]asort[/url], or many of the other sort functions for arrays. However It'll be easier to use the ORDER BY clauase to order the results.
[/quote]

Thanks!

Share this post


Link to post
Share on other sites
Please visit and read the link in my signiture.

Share this post


Link to post
Share on other sites
[quote author=thorpe link=topic=101824.msg403312#msg403312 date=1153849059]
Please visit and read the link in my signiture.
[/quote]
Please visit this link.
I call it: How to Answer questions - The smart way. http://www.catb.org/~esr/faqs/smart-questions.html#id266392

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.