Schlo_50 Posted November 15, 2006 Share Posted November 15, 2006 What does:[quote]Parse error: parse error, unexpected '}' in /home\blah blah on line 49[/quote]actually mean? Link to comment https://forums.phpfreaks.com/topic/27329-parse-error/ Share on other sites More sharing options...
rajmohan Posted November 15, 2006 Share Posted November 15, 2006 extra brasses may be there.. Link to comment https://forums.phpfreaks.com/topic/27329-parse-error/#findComment-124922 Share on other sites More sharing options...
Schlo_50 Posted November 15, 2006 Author Share Posted November 15, 2006 [quote]$sql = "INSERT INTO cust_tbl ( title,fname,sname,adline1,adline2,city,postcode,hphone,email ) VALUES ( \"$select\",\"$first_name\",\"$sur_name\",\"$add_1\",\"$add_2\",\"$city\",\"$post_code\",\"$con_num\",\"$email\") )"; $rs = mysql_query( $sql, $conn ); if ($rs){ echo( "Order Form Complete $first_name!" ); }} ?></body></html>[/quote]Are there too many braces? ??? Link to comment https://forums.phpfreaks.com/topic/27329-parse-error/#findComment-124925 Share on other sites More sharing options...
Orio Posted November 15, 2006 Share Posted November 15, 2006 Yes there are...[code]<?php$sql = "INSERT INTO cust_tbl ( title,fname,sname,adline1,adline2,city,postcode,hphone,email ) VALUES ( \"$select\",\"$first_name\",\"$sur_name\",\"$add_1\",\"$add_2\",\"$city\",\"$post_code\",\"$con_num\",\"$email\") )"; $rs = mysql_query( $sql, $conn ); if ($rs) { echo( "Order Form Complete $first_name!" ); }// there was an extra brace here ?></body></html>[/code]Orio. Link to comment https://forums.phpfreaks.com/topic/27329-parse-error/#findComment-124932 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.