[FX.php List] T_VARIABLE parse error

Dale Bengston dbengston at preservationstudio.com
Thu Jan 25 19:54:27 MST 2007


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
> --------------
>
> With debug on, Firefox shows this:
>
> Accessing FileMaker Pro 7 data.
>
> Using FileMaker URL: http://xxx:xxx@xxx.xxx.xx.xxx/fmi/xml/ 
> FMPXMLRESULT.xml?-db=contact.fp7&-lay=all&- 
> max=50&FirstName=qeqeqe&MiddleName=&LastName=qeqeqeqe&Street=&City=&St 
> ate=&Zip=&Country=&Email=&Phone=&Degree=&Major1=&Major2=&Enroll=&HighS 
> chool=&College=&Comment=&-new
>
> This XML file does not appear to have any style information  
> associated with it. The document tree is shown below.
>
> -
>     <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>
> -- 
> Here is the code:
>
> <?php
> include_once('FX/FX.php');
> include_once('FX/server_data.php');
>
> define("DEBUG", true);
>
> $firstname = $_POST['FirstName'];
> $middlename = $_POST['MiddleName'];
> $lastname = $_POST['LastName'];
> $street = $_POST['Street'];
> $city = $_POST['City'];
> $state = $_POST['State'];
> $zip = $_POST['Zip'];
> $country = $_POST['Country'];
> $email = $_POST['Email'];
> $phone = $_POST['Phone'];
> $degree = $_POST['Degree'];
> $major1 = $_POST['Major1'];
> $major2 = $_POST['Major2'];
> $enrollment = $_POST['Enroll'];
> $school = $_POST['HighSchool'];
> $college = $_POST['College'];
> $comment = $_POST['Comment']
>
> $newrecord = new FX($serverIP,$webCompanionPort);
> $newrecord -> SetDBData('contact.fp7','all');
> $newrecord -> SetDBPassword($webPW,$webUN);
> $newrecord -> AddDBParam('FirstName',$firstname);
> $newrecord -> AddDBParam('MiddleName',$middlename);
> $newrecord -> AddDBParam('LastName',$lastname);
> $newrecord -> AddDBParam('Street',$street);
> $newrecord -> AddDBParam('City',$city);
> $newrecord -> AddDBParam('State',$state);
> $newrecord -> AddDBParam('Zip',$zip);
> $newrecord -> AddDBParam('Country',$country);
> $newrecord -> AddDBParam('Email',$email);
> $newrecord -> AddDBParam('Phone',$phone);
> $newrecord -> AddDBParam('Degree',$degree);
> $newrecord -> AddDBParam('Major1',$major1);
> $newrecord -> AddDBParam('Major2',$major2);
> $newrecord -> AddDBParam('Enroll',$enrollment);
> $newrecord -> AddDBParam('HighSchool',$school);
> $newrecord -> AddDBParam('College',$college);
> $newrecord -> AddDBParam('Comment',$comment);
>
>
> $newrecordResult = $newrecord -> FMNew();
>
> $recordData = current($newrecordResult['data']);
>
> ?>
> _______________________________________________
> 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/20070125/adde0777/attachment.html


More information about the FX.php_List mailing list