[FX.php List] RE: Mixed search requests
Erik Andreas Cayré
erik at cayre.dk
Sun Oct 29 01:33:05 MST 2006
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1856 bytes
Desc: not available
Url : http://www.iviking.org/pipermail/fx.php_list/attachments/20061029/e1fb4af7/smime.bin
More information about the FX.php_List
mailing list