Hi all, I would apprecaite some help with a Parse error I am suffering from. I am very new to PHP, so please be gentle.
The error message is:
Parse error: syntax error, unexpected ‘;’ in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\landp\site\Property_comp\list.html.php on line 21
I have stared at the code for hours now and can not see where my error is, i would greatly appreciate some learned assistance!
below is an excerpt of the code, line 21 shown with //
<?php
include $_SERVER['DOCUMENT_ROOT']. '/landp/site/includes/magicquotes.inc.php';
// add property comparable details - call form
if (isset($_GET['addproperty']))
{
include $_SERVER['DOCUMENT_ROOT']. '/landp/site/includes/db.inc.php';
include 'form.html.php';
exit();
}
//add property details - add to DB
if (isset ($_POST['house_name_text']))
{
$house_name_text = mysqli_real_escape_string($link, $_POST['house_name_text']);
$house_number_text = mysqli_real_escape_string($link, $_POST['house_number_text']);
$addline1_text = mysqli_real_escape_string($link, $_POST['addline1_text']);
$sql = 'INSERT INTO property set house_name="' .$house_name_text. '" , house_number="' .$house_number_text. '" , addline1="' .$addline1. '" ' //line 21
if (!mysqli_query ($link, $sql))