[FX.php List] T_VARIABLE parse error

Rodney Schmidt rodney at fmpro2go.com
Thu Jan 25 12:22:47 MST 2007


I would appreciate any assistance with this. Thank you in advance.

I am creating a user inquiry form that submits to a FMPRO DB using a
³request.php² file. The browser returns this error:

"Parse error: syntax error, unexpected T_VARIABLE in
/home/public_html/response.php on line 25²

Line 25 is this: $newrecord = new FX($serverIP,$webCompanionPort);

The server data is correct for other files work with it.

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']);

?>

Thank you!
-- 
Rodney Schmidt


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


More information about the FX.php_List mailing list