Hi,

I'm a newbie when it comes to PHP. I currently learning the language, but stuck with the following:-

Parse error: syntax error, unexpected T_IF in /home/fhlinux192/e/eatlunch.co.uk/user/htdocs/library/register1.php on line 45

Keep getting the above message, and the lines in my php refering to this is:-

// Check Eat 1 details
$vEat1 = $_POST['Eat1'];
if (!empty(trim($vEat1))) { <-- this is line 45 in my script
/* Not empty */
$sSQL = "INSERT INTO webelorderdetails (SessionID, MSelect_Code, MSelect_Desc, MSelect_Qty) VALUES ('$sid', 'WM0001-000000', 'Eat 1', '$BuffetDate')";

$result = mysql_query($sSQL, $conn);
}

I don’t know what the correct syntax should be, any helpful pointers.

Regards