I am trying to insert data into mysql with mysqli. My connection details are correct, but it will not insert. I've tried with and without backticks.
if ($query = $connection->prepare("INSERT INTO `items` (`user_id`, `name`, `due_date`) VALUES (?, ?, ?)")) {
$query->bind_param('iss', $_SESSION['id'],$_POST['name'],$_POST['dueDate']);
$query->execute();
}