prepare("INSERT IGNORE INTO social_connections (platform) VALUES (?)");
foreach ($platforms as $platform) {
$stmt->execute([$platform]);
}
// Fetch all connections
$stmt = $pdo->query("SELECT platform, is_connected FROM social_connections");
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
$connections[$row['platform']] = $row['is_connected'];
}
} catch (PDOException $e) {
// Handle DB error gracefully
error_log("DB Error: " . $e->getMessage());
// Set all connections to false as a fallback
foreach ($platforms as $platform) {
$connections[$platform] = false;
}
}
?>
Influencer Dashboard
Social Media Connections
Connect your accounts to unlock powerful analytics and content insights.
Report Generation
Generate in-depth performance reports for your connected accounts.
AI Content Strategy
Get personalized content ideas and strategies from our AI.
Video Editing Tools
Top-rated tools to level up your video production quality.