prepare($sql); $stmt->execute([$title, $icon, $description, $status]); // Redirect to tasks list header("Location: tasks.php"); exit; } catch (PDOException $e) { // Ideally, log this error $errors['db'] = "Database error: " . $e->getMessage(); } } } ?>

Add New Task

">
Cancel