[FX.php List] Pulling data directly from findResult

Bob Patin bob at patin.com
Thu Oct 16 15:21:19 MDT 2008


I don't get the reason for not using the FOREACH statement, Jonathan;  
what is to be gained by having to write such a convoluted line of code?

BP

Bob Patin
Longterm Solutions
bob at longtermsolutions.com
615-333-6858
http://www.longtermsolutions.com
iChat: bobpatin
AIM: longterm1954
FileMaker 9 Certified Developer
Member of FileMaker Business Alliance and FileMaker TechNet
--------------------------
FileMaker hosting and consulting for all versions of FileMaker
PHP • Full email services • Free DNS hosting • Colocation • Consulting

On Oct 16, 2008, at 9:43 AM, Gjermund Gusland Thorsen wrote:

> echo $findResult['data'][key($findResult['data'])] 
> ['desiredfieldname'][0];
>
> ggt
>
> 2008/10/16 Jonathan Schwartz <jschwartz at exit445.com>:
>> Hi Foks,
>>
>> Instead of using foreach, how can data be pulled from the  
>> $FindResult array?
>>
>> Trying syntax such as this, without result:
>>
>> $desireddatavalue = $findResult['data'] ['desiredfieldname']
>>
>> I know it's not right.  I'm just missing that last syntax step....I  
>> think.
>>
>> Assume that I want to manually step through found records, string  
>> with
>> first.
>>
>> Thanks
>>
>> Jonathan
>>
>> --
>> Jonathan Schwartz
>> Exit 445 Group
>> jonathan at exit445.com
>> http://www.exit445.com
>> 415-370-5011
>> _______________________________________________
>> 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



More information about the FX.php_List mailing list