[FX.php List] code

Bob Patin bob at patin.com
Thu Nov 13 12:22:14 MST 2008


OK, I see it now; lots of queries on this page, and the one I was  
testing with wasn't actually being used in this particular test...

I'll start using this; thanks for the tip.

BP


On Nov 13, 2008, at 1:15 PM, Bob Patin wrote:

> here's the code I'm using in an actual site:
>
> $totals=new FX($serverIP,$webCompanionPort);
> $totals->SetDBData($dbname,'Orders_Temp');
> $totals->SetDBPassword('xxx','yyyy');
> $totals->AddDBParam('order_number',$_SESSION['order_number']);
> $totalsResult=$totals->FMFind();
>
> foreach($totalsResult['data']as $key=>$totalsData);
> list( $recid, $modid ) = explode( '.', $key );
> echo $recid;
>
> That should return a recordID, if your  LIST function is correct... ?
>
> Bob Patin
> Longterm Solutions LLC
> bob at longtermsolutions.com
> 615-333-6858
> http://www.longtermsolutions.com
> iChat/AIM: bobpatin
> FileMaker 9 Certified Developer
> Member of FileMaker Business Alliance
> --------------------------
> FileMaker hosting and consulting for all versions of FileMaker
> PHP • Full email services • Free DNS hosting • Colocation • Consulting
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list