Dear friends,

On submitting form to mysql database I get a parse error,There is no problem 
with connection code, Problem is some where around create the sql statement 
Can any one figure out where is the precise error, please.
Following is the code from php file

// open the connection
$conn = mysql_connect("localhost", "", "");

// pick the database to use

// create the SQL statement
$sql = "INSERT INTO testtable values ('{$_POST[testField]}','

// execute the SQL statement
if (mysql_query($sql, $conn)) {
    echo "record added!";
} else {
    echo "something went wrong";

Reply via email to