currently getting this error:
syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING
here is the code:
<?PHP
$con = mysql_connect("","","");
if (!$con)
{
die('Could not connect: ' .mysql_error());
}
mysql_select_db("", $con);
$sql= "INSERT INTO conference (first, last, middle, street1, street2, city, state, home, cell, work, media, meal, business, other) VALUES ('$_POST['first']','$_POST['last']','$_POST['middle']','$_POST['street1']','$_POST['street2']','$_POST['city']','$_POST['state']','$_POST['home']','$_POST['cell']','$_POST['work']','$_POST['media']','$_POST['meal']','$_POST['business']','$_POST['other']')";
if (!mysql_query($sql,$con))
{
die('Error: ' .mysql_error());
}
echo "1 record added'<br />' click here to continue registration ";
mysql_close($con)
?>