[FX.php List] Arrays in FX-php
Don W. Yee
dwyee at ucdavis.edu
Thu Aug 10 15:26:04 MDT 2006
Hi Jack,
Thanks for all your help.
Don
Don Yee
Program of Technocultural Studies
1 Shields Avenue
Davis, Ca 95616
Art Building Rm 316
Phone 530-754-7208
Website: http://technoculture.ucdavis.edu/
On Aug 10, 2006, at 1:23 PM, Jack Kelly wrote:
> Don,
>
> You may have a typo in your code below. I think you want
> $webCompanionPort in the new FX statement parameter. You're missing
> one of the n's.
>
> Hope this helps,
> Jack
>
> On Aug 10, 2006, at 4:14 PM, Don W. Yee wrote:
>
>> Dear FXers,
>>
>> Currently, I'm learning FX/PHP. I'm trying to access a value from
>> a variable "$testfxResult" with the key of " 'errorCode' ". PHP
>> is having an error of "Fatal error: Cannot use object of type
>> FX_Error as array ". I thought "errorCode" is a value accessible
>> from the array? Here's the code:
>>
>>
>> <body>
>> <?php
>>
>> define("DEBUG", true);
>> include_once('FX.php');
>> include_once ('server_data.php');
>> $testfx = new FX ($serverIP,$webCompaionPort);
>> $testfx->SetDBData ('Lending_Library.fp7','AssetFormView');
>> $testfx->SetDBPassword ($webPW,$webUN);
>> $testfxResult = $testfx ->FMFindAll();
>>
>> echo $testfxResult['errorCode']; // error occurs here.
>>
>> ?>
>>
>> </body>
>>
>> Any information will help. I'm stumped.
>>
>> Thanks.
>>
>> Don
>>
>>
>>
>>
>> Don Yee
>> Program of Technocultural Studies
>> 1 Shields Avenue
>> Davis, Ca 95616
>> Art Building Rm 316
>>
>> Phone 530-754-7208
>> Website: http://technoculture.ucdavis.edu/
>>
>>
>> _______________________________________________
>> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060810/4bde6ebb/attachment.html
More information about the FX.php_List
mailing list