prepare("INSERT INTO tasks (task_desc, created) VALUES (:desc, :created)"); $query->execute(["desc"=>$desc,"created"=>$current_time]); header("Location:/?status=added"); exit; } } else { header("Location: /"); exit; } ?>