I am trying to add data to a Mysql Database with this code:

```
$sql = mysql_query("UPDATE members SET name = '$name' WHERE id = '$_SESSION['username']' ");

```

but when I runn it I get the following error: 

> 
> Parse error: syntax error, unexpected '' (T\_ENCAPSED\_AND\_WHITESPACE),
>  expecting identifier (T\_STRING) or variable (T\_VARIABLE) or number
>  (T\_NUM\_STRING)
> 
> 
> 

What have I done wrong?