query("CREATE TABLE IF NOT EXISTS `marketing_tasks` ( `id` INT AUTO_INCREMENT PRIMARY KEY, `platform` VARCHAR(50) NOT NULL, `type` VARCHAR(50) NOT NULL, `status` VARCHAR(20) DEFAULT 'pending', `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP )"); // Insert the autonomous task $stmt = $con->prepare("INSERT INTO marketing_tasks (platform, type, status) VALUES ('facebook', 'autonomous_scroll_and_reply', 'pending')"); $stmt->execute(); echo "
A new 'autonomous_scroll_and_reply' task is now pending for Facebook.
"; echo "Please restart the Android app now. It will immediately pick up this task and start scrolling!
";