[FX.php List] T_VARIABLE parse error

Steve Hannah shannah at sfu.ca
Thu Jan 25 12:57:01 MST 2007


You're missing a semicolon on the previous line (line 23)

-Steve
On 25-Jan-07, at 11:22 AM, Rodney Schmidt wrote:

> 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
>
> _______________________________________________
> 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/8af73607/attachment-0001.html


More information about the FX.php_List mailing list