[FX.php List] T_VARIABLE parse error

Rodney Schmidt rodney at fmpro2go.com
Fri Jan 26 16:05:14 MST 2007


Dale, once again, thank you very much.

I was working with the FMS7A CWP document and had located the error 105
definition. I should have used the FXFunctions.txt and will do so from now
on.

Thanks again for sharing your expertise.
-- 
Rodney Schmidt


> From: <fx.php_list-request at mail.iviking.org>
> Reply-To: <fx.php_list at mail.iviking.org>
> Date: Fri, 26 Jan 2007 13:52:49 -0700 (MST)
> To: <fx.php_list at mail.iviking.org>
> Subject: FX.php_List Digest, Vol 30, Issue 39
> 
> Message: 2
> Date: Fri, 26 Jan 2007 12:12:09 -0600
> From: Dale Bengston <dbengston at preservationstudio.com>
> Subject: Re: [FX.php List] T_VARIABLE parse error
> To: "FX.php Discussion List" <fx.php_list at mail.iviking.org>
> Message-ID:
> <83EB9C6B-E235-4BAD-88BE-52E00939A802 at preservationstudio.com>
> Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes;
> format=flowed
> 
> Hi,
> 
> FileMaker error 105 is "layout missing." Let's take a look at your
> line of code for layouts:
> $search -> SetDBData('contact.fp7','web','all',$groupsize);
> 
> In the FX documentation file FXFunctions.txt, we learned that
> SetDBData takes four arguments:
> SetDBData ($database, $layout="", $groupSize=50, $responseLayout="")
> 
> So, since you're feeding SetDBData four arguments, $groupsize is
> interpreted as the layout to return the data from, which FX is
> interpreting as a layout named '5'.
> 
> Prune out 'all' to use your $groupsize variable as the number of
> records to return. That leaves three arguments to SetDBData which
> correspond to database, layout, and group size.
> 
> Hope this helps,
> Dale
> 
> 
> On Jan 26, 2007, at 10:53 AM, Rodney Schmidt wrote:
> 
>> Thank you, Dale, for your assistance. That solved the problem of
>> getting data into the database.
>> 
>> Now I am trying to construct a query of the records so submitted. I
>> have done this before and thought I remembered it all, but am going
>> nuts right now.
>> 
>> The server returns no records and error code 105:
>> 
>> <FMPXMLRESULT>
>> <ERRORCODE>105</ERRORCODE>
>> <PRODUCT BUILD="08/12/2004" NAME="FileMaker Web Publishing Engine"
>> VERSION="7.0v3"/>
>> <DATABASE DATEFORMAT="" LAYOUT="" NAME="" RECORDS="0" TIMEFORMAT=""/>
>> <METADATA/>
>> </FMPXMLRESULT>
>> 
>> The code I am using before all the echo statements is this:
>> 
>> <?php
>> include_once('FX/FX.php');
>> include_once('FX/server_data.php');
>> 
>> define("DEBUG", true);
>> 
>> if(isset($_GET['skip'])){
>> 
>> $skipsize=$_GET['skip'];
>> }else{
>> $skipsize=0;
>> }
>> $groupsize=5;
>> $search = new FX($serverIP,$webCompanionPort);
>> $search -> SetDBData('contact.fp7','web','all',$groupsize);
>> $search -> SetDBPassword($webPW,$webUN);
>> $search -> FMSkipRecords($skipsize);
>> $searchResult = $search -> FMFindall();
>> ?>
>> 
>> The echo statements begin with this:
>> 
>> <?php
>> foreach( $searchResult['data'] as $key => $searchData )
>> 
>> I must be leaving something out?
>> 
>> Thank you so much!
>> -- 
>> Rodney Schmidt
>> 




More information about the FX.php_List mailing list