Question: I am as green as green can be. I'm trying to build a database for my DVDs. Now I'm trying to build a form to enter the data. I use Dreamweaver to code and it tells me there is a syntax error on the 'VALUE' line. When I run the code I get the above error. But the only ';' is at the end of the line. I'm sure it's something stupid I'm doing wrong but I can't find an answer in any of your other questions or on your debugging page. Thanks in advance and please be gentle... I'm new!

```
//  Write data to table.    

    $sql=("INSERT INTO movies (Movies, Rating, Genre, Year, Actors, Time, Notes, Viewed, BitRate, link)
        VALUES ('$_POST[Movies]','$_POST[Rating]','$_POST[Genre]','$_POST[Year]','$_POST[Actors]','$_POST[Time]','$_POST[Notes]','$_POST[Viewed]','$_POST[BitRate]','$_POST[link]')";

    if (!mysqli_query($con,$sql))
    {
    die('Error: X ' . mysql_error($con));
    }

 echo "1 record added";

 mysqli_close($con);

```

Answer: 
Be careful there is an extra opening bracket:

```
$sql=("...

```

It should be

```
$sql="...

```
You have a `(` before anything that shouldn't be there.

```
$sql=("INSERT INTO movi...
     ^ // What's this?

```

You should have:

```
$sql="INSERT INTO movies (Movies, Rating, Genre, Year, Actors, Time, Notes, Viewed, BitRate, link)
        VALUES ('$_POST[Movies]','$_POST[Rating]','$_POST[Genre]','$_POST[Year]','$_POST[Actors]','$_POST[Time]','$_POST[Notes]','$_POST[Viewed]','$_POST[BitRate]','$_POST[link]')";

```

Alo, just FYI, normally when you get this `;` error, it means something is wrong on the line above.