Jump to content

Parse Error


Schlo_50

Recommended Posts

[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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.