TWIOF,
I would say search once if the result is not that huge.

Then you can use javascript to filter/sort the result.

I happened to have a nice filter example for you. Take a look at its
last exmaple.

http://www.javascriptkit.com/script/script2/tablefilter.shtml

Enjoy it ^O^
Henry

TWIOF wrote:
> Hello everyone, my question today regards a search system I'm making.
> If I retrieve a bunch of results and and want to refine them should I
> submit a new request to the database OR filter the array?
>
> Which method is better for the server and response time of the page.
> What would you guys do?
> 
> Cheers
> 
> TWIOF


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to