[FX.php List] How to use SetFMGlobal

Derrick Fogle derrick at fogles.net
Tue May 10 08:56:41 MDT 2011


Thus, PHP SessionID's are your friend.

On May 10, 2011, at 9:54 AM, Ness, David wrote:

> Globals are unique to the user, and each call to fx.php is a unique user incident, so you must reset globals on each fx ‘transaction’.
>  
> (I think this is right unless I’m wrong.)
>  
>  
> David Allen Ness
> Database Systems Administrator
> Web Applications Developer
>  
> <image001.gif>
>  
> From: fx.php_list-bounces at mail.iviking.org [mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Jon Montgomery
> Sent: Tuesday, May 10, 2011 10:52 AM
> To: FX.php Discussion List
> Subject: Re: [FX.php List] How to use SetFMGlobal
>  
> Malcolm,
>  
> Globals do not work to well on the web.  It has been a long while since I tried using one.  It did not work and many people have told me that they just do not work on the web.  I found ways around it to do the same thing.
>  
> Sorry that I do not remember all the technical ways of explaining it, but the global is always reset to its default value with each call to the database the global you would set via the web will disappear right with each call to the database via the web.  
>  
> Not a very well explained/written explanation but that is the way I understand it.
>  
> HTH
>  
> Jon Montgomery
>  
>  
> On May 10, 2011, at 9:31 AM, Bob Patin wrote:
> 
> 
> Malcolm,
>  
> I've not used that function, but I would guess, as with all of the FX functions, that it's fairly straightforward.
>  
> Do you have the global on your web layout? If not, there's your problem.
>  
> After you set the field, try echoing an error message:
>  
> echo $queryResult['errorCode'];
>  
> If it's a 102 error then the field isn't on the web layout; anything other than a 0 means something's amiss.
>  
> HTH,
>  
>  
> Bob Patin
> Longterm Solutions
> bob at longtermsolutions.com
> 615-333-6858
> http://www.longtermsolutions.com
> iChat: bobpatin
> FileMaker 9, 10 & 11 Certified Developer
> Member of FileMaker Business Alliance and FileMaker TechNet
> --
> Expert FileMaker Consulting 
> FileMaker Hosting for all versions of FileMaker
> PHP • Full email services • Free DNS hosting • Colocation • Consulting
> :
>  
> On May 10, 2011, at 3:37 AM, Malcolm Fitzgerald wrote:
> 
> 
> I'm new  to FX.php
> 
> I can obtain results from my database on a simple search. Now I would  like to extend the results by  performing a script which relies on a global field. Whenever I include SetFMGlobal I don't get a result. If I comment out the line I do get a result, though my script returns the wrong set because the global is empty.
> 
> Any hints appreciated.
> 
> Malcolm_______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>  
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>  
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list

 
Derrick



More information about the FX.php_List mailing list