[FX.php List] T_VARIABLE parse error

Rodney Schmidt rodney at fmpro2go.com
Thu Jan 25 17:24:22 MST 2007


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=&Sta
te=&Zip=&Country=&Email=&Phone=&Degree=&Major1=&Major2=&Enroll=&HighSchool=&
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']);

?>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20070125/30e0ef39/attachment-0001.html


More information about the FX.php_List mailing list