[FX.php List] RE: Mixed search requests

Chris Bisgard cbisgard at racc.org
Mon Oct 30 11:46:45 MST 2006


Doh! Sorry, I got confused on who wrote what. Anyway, thanks to all, and credit where it's due, etc. :)

Must say, I'm surprised I haven't seen (or at least I can't seem to find) more posts regarding the problem of mixed searches. I would think lots of people would need a search that looks for "this" AND "that" OR "the other". Now that I'm trying to take the array returned from FX and transfer the data I want it into another array while maintaining prev/next/foundCount, it seems like a lot of extra tedious coding to a non-programmer like myself. Anyway, not a complaint (newbies can't be choosers!), just thought it odd that I haven't seen more on this list about this topic.

Chris

> 
> Den 27/10/2006 kl. 23.09 skrev Chris Bisgard:
> 
> > Dale, thanks...
> 
> You're welcome!
> (I wrote the following...;-)
> 
> >> Fancy code: walk the array you get from FX using foreach.
> >> In the foreach you copy just the records you need into 
> another array 
> >> using whatever filtering is necessary.
> >> Use the new array for display and base your prev/next 
> links on that.
> >> You'll have to store this array in a $_SESSION for your 
> prev/next to 
> >> work as expected.
> >> This will save some time looking in FM (just one search 
> per session) 
> >> and cost you some time with the larger array stored in the 
> $_SESSION.
> >> I think you're ok, if your dataset isn't huge, and the 
> data doesn't 
> >> change very often.
> >
> > I think this is exactly what I needed to hear. Just helped to have 
> > someone describe the process for me. Now I just need to study that 
> > FX-returned array a bit, and I think I'll be in business. Much 
> > appreciated!
> >
> > I don't think I'm going to try your clever global variable idea for 
> > user-defined script parameters, but it sounds promising! If 
> I end up 
> > trying it, I'll let you know what happens.
> >
> > Also, thanks to Dan for the advice to view array output 
> within a <pre> 
> > tag. Don't know why I didn't think of that! It was a huge help - 
> > thanks again.
> >
> > Chris
> 
> 
> 
> ---
> Erik Andreas Cayré
> Spangsbjerg Møllevej 169
> DK-6705 Esbjerg Ø
> 
> Home Tel: +45 75150512
> Mobile: +45 40161183
> 
> »If you can't explain it simply, you don't understand it well enough.«
> -- Albert Einstein
> 
> »If you don't have time to do it right, when will you have 
> time to do it over?«
> -- John Wooden, basketball coach
> 



More information about the FX.php_List mailing list