diff --git a/dashboard.php b/dashboard.php new file mode 100644 index 0000000..d6c35cc --- /dev/null +++ b/dashboard.php @@ -0,0 +1,23 @@ + "unauthorized"]); + exit; +} + +$stmt = $pdo->prepare(" + SELECT id, title, status, created_at, updated_at, final_video_url + FROM projects + WHERE user_id = ? + ORDER BY created_at DESC +"); +$stmt->execute([$userId]); + +echo json_encode($stmt->fetchAll()); +exit;