|
-
Mar 11th, 2010, 08:24 AM
#1
Thread Starter
New Member
Php Syntax help
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|