[FX.php List] How to use SetFMGlobal

malcolm at notyourhomework.net malcolm at notyourhomework.net
Wed May 11 13:31:09 MDT 2011


On 11/05/2011, at 1:07 PM, Tim 'Webko' Booth wrote:

> 
> On 11/05/2011, at 1:10 PM, malcolm at notyourhomework.net wrote:
> 
>> OK, I can do that.
>> 
>> 1. use postcode to search
>> 2. get results
>> 3. if there is a optional range present, do the maths and generate a new search
>> 4. get results
>> 5. print the list
>> 
>> I was allured by the prospect of FX being able to handle it all in one request.
> 
> 
> And why shouldn't it?
> 
> if (isset($_REQUEST['Distance'])) {
> 	//Do the maths and search
> } else {
> 	//Just do the PCode search
> }
> 
> I'll note that so far I have never found something that required a Script rather than handling it in PHP - I'm sure there may be something, but I also like to keep the web layer totally seperate from the data layer


The problem with this scenario is that the data required for doing the maths is in the database. I'm happy to do the maths but I need to get the data from Filemaker before I can do that. 



Malcolm



More information about the FX.php_List mailing list