Reply to Re: Sorting results of odbc_exec???

Your name:

Reply:


Posted by Alvaro G Vicario on 08/26/05 15:43

*** Karin Jensen wrote/escribió (Fri, 26 Aug 2005 10:40:03 +0100):
> Is it possible to sort the contents of $results? I wish to use a
> regex-based sort order that you can't do in Access 2000* SQL with
> "ORDER BY".

I haven't checked the manual but I guess odbc_*() functions do now allow
custom sorting. However, there're array functions that allow such task. So
you'd need to load all results into an array. I hope the query doesn't
return 10,000 records ;-)

uasort()
uksort()
usort()



--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация