+
+
+
+
+
+
+
+
+ diff --git a/index.php b/index.php index df80d87..5c9a593 100644 --- a/index.php +++ b/index.php @@ -52,8 +52,9 @@
@@ -123,7 +124,7 @@ try { diff --git a/project.php b/project.php new file mode 100644 index 0000000..f841c8f --- /dev/null +++ b/project.php @@ -0,0 +1,119 @@ + + + + + + + prepare("SELECT * FROM projects WHERE id = ?"); + $stmt->execute([$project_id]); + $project = $stmt->fetch(PDO::FETCH_ASSOC); + } + } catch (PDOException $e) { + error_log("Database error: " . $e->getMessage()); + } + } + + $page_title = $project ? htmlspecialchars($project['title']) . ' | Проект' : 'Проект не найден'; + $page_description = $project ? htmlspecialchars($project['description']) : 'Запрошенный проект не найден.'; + ?> + +Пока нет проектов для отображения. Зайдите позже!
+