Project not found or no ID provided.
No financial data found for this project.
| " . $display_header . " | "; } ?>
|---|
| " . $formatted_value . " | "; } ?>
prepare("SELECT name FROM projects WHERE id = :id"); $stmt->execute([':id' => $project_id]); $project_name = $stmt->fetchColumn(); // Fetch financial data $stmt = $pdo->prepare("SELECT * FROM projectFinanceMonthly WHERE projectId = :pid ORDER BY month"); $stmt->execute([':pid' => $project_id]); $financial_data = $stmt->fetchAll(PDO::FETCH_ASSOC); } catch (PDOException $e) { $db_error = "Database error: " . $e->getMessage(); } } else { $page_title = "Project ID not provided"; } $page_title = $project_name ? "Financial Data for " . htmlspecialchars($project_name) : "Project Not Found"; ?>
| " . $display_header . " | "; } ?>
|---|
| " . $formatted_value . " | "; } ?>