Parse error?
Posted: Thu Mar 11, 2010 3:40 am
Hi guys,
can someone please tell me what is wrong with this script as all i get is; parse error on line 51 (line 51 is showing as the close page button)
i will post the script that the error is on below hopefully someone will know as this has my head done in
thanks in advance
<?php echo include"connect.php" ;?>
<?php include"success.php" ;?>
<?php
//CONNECTION TO DATABASE
// this is processed when the form is submitted
// back on to this page (POST METHOD)
if ($_SERVER['REQUEST_METHOD'] == "POST") {
// double-up apostrophes
$title = $_POST['title'];
$first_name = $_POST['first_name'];
$last_name = $_POST['last_name'];
$date_of_birth = $_POST['date_of_birth'];
$marital_status = $_POST['marital_status'];
$licence_number = $_POST['licence_number'];
$issuing_country = $_POST['issuing_country'];
$email = $_POST['email'];
$mobile_tel = $_POST['mobile_tel'];
$town = $_POST['town'];
$country = $_POST['country'];
$post_code = $_POST['post_code'];
$date = $_POST['date'];
$tel_home_work = $_POST['tel_home_work'];
$title = $_POST['title1'];
$first_name = $_POST['first_name1'];
$last_name = $_POST['last_name1'];
$date_of_birth = $_POST['date_of_birth1'];
$marital_status = $_POST['marital_status1'];
$licence_number = $_POST['licence_number1'];
$issuing_country = $_POST['issuing_country1'];
$SQL = " INSERT INTO tbl_buyback (title, first_name, last_name, date_of_birth, marital_status, licence_nnumber, issuing_country, email, tel_home/work, mobile_tel, town, country, post_code, date) VALUES ('$title', '$first_name', '$last_name', '$date_of_birth', '$marital_status', '$licence_number', '$issuing_country', '$email', '$tel_home/work', '$mobile_tel', '$town', '$country', '$post_code', 'date', '$title1', '$first_name1', '$last_name1', '$date_of_birth1', '$marital_status1', '$licence_number1', '$issuing_country1')";
//execute SQL statement
$result = mysql_db_query($db,$SQL,$cid);
// check for error
if (!$result) { echo("ERROR: " . mysql_error() . "\n$SQL\n"); }
echo ("<p><b>Thank you, your information has been received</b></p>\n");
echo ("<p><b>We will contact you in due course with a list of available properties.</b></p>\n");
}
{?> ;
<input type="button" value="Close This Window" onClick="javascript:window.close()">
can someone please tell me what is wrong with this script as all i get is; parse error on line 51 (line 51 is showing as the close page button)
i will post the script that the error is on below hopefully someone will know as this has my head done in
thanks in advance
<?php echo include"connect.php" ;?>
<?php include"success.php" ;?>
<?php
//CONNECTION TO DATABASE
// this is processed when the form is submitted
// back on to this page (POST METHOD)
if ($_SERVER['REQUEST_METHOD'] == "POST") {
// double-up apostrophes
$title = $_POST['title'];
$first_name = $_POST['first_name'];
$last_name = $_POST['last_name'];
$date_of_birth = $_POST['date_of_birth'];
$marital_status = $_POST['marital_status'];
$licence_number = $_POST['licence_number'];
$issuing_country = $_POST['issuing_country'];
$email = $_POST['email'];
$mobile_tel = $_POST['mobile_tel'];
$town = $_POST['town'];
$country = $_POST['country'];
$post_code = $_POST['post_code'];
$date = $_POST['date'];
$tel_home_work = $_POST['tel_home_work'];
$title = $_POST['title1'];
$first_name = $_POST['first_name1'];
$last_name = $_POST['last_name1'];
$date_of_birth = $_POST['date_of_birth1'];
$marital_status = $_POST['marital_status1'];
$licence_number = $_POST['licence_number1'];
$issuing_country = $_POST['issuing_country1'];
$SQL = " INSERT INTO tbl_buyback (title, first_name, last_name, date_of_birth, marital_status, licence_nnumber, issuing_country, email, tel_home/work, mobile_tel, town, country, post_code, date) VALUES ('$title', '$first_name', '$last_name', '$date_of_birth', '$marital_status', '$licence_number', '$issuing_country', '$email', '$tel_home/work', '$mobile_tel', '$town', '$country', '$post_code', 'date', '$title1', '$first_name1', '$last_name1', '$date_of_birth1', '$marital_status1', '$licence_number1', '$issuing_country1')";
//execute SQL statement
$result = mysql_db_query($db,$SQL,$cid);
// check for error
if (!$result) { echo("ERROR: " . mysql_error() . "\n$SQL\n"); }
echo ("<p><b>Thank you, your information has been received</b></p>\n");
echo ("<p><b>We will contact you in due course with a list of available properties.</b></p>\n");
}
{?> ;
<input type="button" value="Close This Window" onClick="javascript:window.close()">