prepare("INSERT INTO tasks (user_id, title, description, category, location, payout) VALUES (?, ?, ?, ?, ?, ?)"); $stmt->execute([$user_id, $title, $description, $category, $location, $payout]); header('Location: index.php'); exit(); } catch (PDOException $e) { $error = "Database error: " . $e->getMessage(); } } } ?>

Post a New Task