[FX.php List] RE: Mixed search requests

Erik Andreas Cayré erik at cayre.dk
Sun Oct 29 01:31:40 MST 2006


Den 26/10/2006 kl. 14.59 skrev Alex Gates:

> Wow - this is a great way to view the array.
>
> Question:  Some have .1 after the recID.  Others don't. Why?  When  
> I use
> get(RecordID) it doesn't show the .1
> I'm sure it won't effect what I'm doing... I'm just curious.

It is a version counter maintained internally by FM.
It is 0 (zero) when the record is created, and increments by 1 (one)  
everytime any edit to the record is stored by FM, no matter where the  
edit came from (FM client, WPE, whatever else).

Image 2 users accessing the same record at the same time. Both get  
the same version of the record, one is quick and stores his edits  
back to FM. Then the other user submits his edits...
What should happen with the changes made by the first user?
When this is a big deal, you can use the record version number to  
check that an edit being submitted is in fact based on the current  
record in FM, ie. not overwriting another edit performed by someone  
else 'behind you back'...!

> [16.1] => Array
>         (
>             [Browser] => Array
>                 (
>                     [0] => Netscape
>                 )
>
>             etc.
>
> [19.0] => Array
>         (
>             [Browser] => Array
>                 (
>                     [0] => Microsoft Internet Explorer
>                 )
> 		etc.
>
> ----------------
> also, instead of just print_r() on the FX array, do this:
>
> echo '<pre>';
> print_r($fx_returned_array);
> echo '</pre>';
>
> your crossed eyes will uncross.
>
> dan



---
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/a2cbe012/smime.bin


More information about the FX.php_List mailing list