[FX.php List] T_VARIABLE parse error

Dale Bengston dbengston at preservationstudio.com
Fri Jan 26 11:12:09 MST 2007


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
>
>
>
> > From: <fx.php_list-request at mail.iviking.org>
> > Reply-To: <fx.php_list at mail.iviking.org>
> > Date: Fri, 26 Jan 2007 00:59:11 -0700 (MST)
> > To: <fx.php_list at mail.iviking.org>
> > Subject: FX.php_List Digest, Vol 30, Issue 37
> >
> > Message: 1
> > Date: Thu, 25 Jan 2007 20:54:27 -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:
> > <1786D418-2B32-42A9-94E9-F70BA976E8D3 at preservationstudio.com>
> > Content-Type: text/plain; charset="windows-1252"
> >
> > Hi Rodney,
> >
> > You are not specifying a layout for FX to talk to. The line:
> > $newrecord -> SetDBData('contact.fp7','all');
> >
> > ...needs a third parameter:
> > $newrecord -> SetDBData('contact.fp7', 'mylayout', 'all');
> >
> > ...in the query below, FX thinks your layout name is 'all'.
> >
> > Dale
> >
> >
> > On Jan 25, 2007, at 6:24 PM, Rodney Schmidt wrote:
> >
> >> Thanks to Steve Hannah‚s help, I no longer have the T_VARIABLE
> >> parsing error.
> >>
> >> Trying to track down the source of this new error situation.
> >>
> >> „Response.php‰ is passing the data along but nothing arrives in the
> >> database.
> >>
> >> Would appreciate any suggestions.
> >>
> >> Thank you.
> >>
> >> Rodney Schmidt
> _______________________________________________
> 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