ReOrder result set, Save a trip to DB/Srv

This is a discussion on ReOrder result set, Save a trip to DB/Srv within the PHP Language forums, part of the PHP Programming Forums category; I've been using Pear::DB http://pear.php.net/reference/DB-1.7.6/ I don't know what ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-01-2006
awebguynow
 
Posts: n/a
Default ReOrder result set, Save a trip to DB/Srv

I've been using Pear::DB
http://pear.php.net/reference/DB-1.7.6/

I don't know what the best sorting options are; Sure you could
re-query the DB ('order by').

I suppose you could place the $RS in a multi-dim array (in Session) and
re-sort that.

If you could do it all on the client side, that would be impressive
too. Here's 1 model:
http://kryogenix.org/code/browser/sorttable/

pretty nifty, although I see there are assumptions for date formats
that aren't consistent with standard MySQL dates: yyyy-mm-dd

Before I reinvent the wheel, has anyone done resorting or is there an
easy way ?

Reply With Quote
  #2 (permalink)  
Old 09-11-2006
awebguynow
 
Posts: n/a
Default Re: ReOrder result set, Save a trip to DB/Srv

I also envision a Filtering system, to further query and refine the
data (returning a subset), without re-executing a query against the DB.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:07 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0