[FX.php List] T_VARIABLE parse error
Rodney Schmidt
rodney at fmpro2go.com
Fri Jan 26 09:53:23 MST 2007
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20070126/e2440187/attachment-0001.html
More information about the FX.php_List
mailing list