Hi I have the following with the below code? I have another statement which works but it is to another table and without the project_id column.
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'change (title, description, project_id) VALUES ('Test1', 'Test1', '1')' at line 1
)
$sql = "INSERT INTO change (title, description, project_id) VALUES (:title, :description, :project_id)";
$query = $db->prepare($sql);
$query->execute(array(":title" => $title,
":description" => $description,
":project_id" => $row_id));
$arr = $query->errorInfo();
print_r($arr);
Where have I gone wrong?