diff --git a/collections.php b/collections.php
index c90618e..10664c9 100644
--- a/collections.php
+++ b/collections.php
@@ -1,42 +1,32 @@
-
-
-
-
-
-
-
-
- ' . $c['collection_description'] . '
+
+foreach($db->query('select id, name, cover_image from collections;') as $c) {
+ $collection_id = $c['id'];
+ $cover_image = $c['cover_image'];
+ $collection_name = $c['name'];
+
+ print("
+
+
-
' . $c["name"] . '
+
{$collection_name}
- ';
- }
- print($html);
- $index += 1;
+ ");
+}
+
?>
-
\ No newline at end of file
diff --git a/projects_data/projects.db b/projects_data/projects.db
new file mode 100644
index 0000000..41276f1
Binary files /dev/null and b/projects_data/projects.db differ
diff --git a/show_collection.php b/show_collection.php
new file mode 100644
index 0000000..679e010
--- /dev/null
+++ b/show_collection.php
@@ -0,0 +1,51 @@
+
+
+prepare($query);
+$col_query->bindParam(':id', $_REQUEST['id']);
+$col_query->execute();
+
+$collection_info = $col_query->fetch();
+
+// get collection items
+$query = 'select name, material, description, cover_image from collection_items where collection_id = :id';
+$ci_query = $db->prepare($query);
+$ci_query->bindParam(':id', $_REQUEST['id']);
+$ci_query->execute();
+?>
+
+
+ print($collection_info['name']); ?>
+
+
+ print($collection_info['description']); ?>
+
+
+
+
+fetchAll() as $ci) {
+ if ($ci['cover_image'] == null) {
+ $ci['cover_image'] = $collection_info['cover_image'];
+ }
+ $ci_img_url = 'projects_data/img/' . $ci['cover_image'];
+ print("
+
+
+
{$ci['name']}
+
+ ");
+}
+?>
+
+
+
+include('footer.tpl');
+$db = null;
+?>
\ No newline at end of file