New site for Items

This commit is contained in:
fr34k 2020-11-11 22:53:35 +01:00
parent e0eddae933
commit 02161b549c

22
show_ci.php Normal file
View file

@ -0,0 +1,22 @@
<?php
$show_sep=true;
$db = new PDO('sqlite:projects_data/projects.db') or die('database error');
include('header.tpl');
?>
<div id="collection_padding">
<?php
// get collection items
$query = 'select name, material, description, cover_image, id from collection_items where collection_id = :id';
$ci_query = $db->prepare($query);
$ci_query->bindParam(':id', $_REQUEST['id']);
$ci_query->execute();
?>
</div>
<?
include('footer.tpl');
$db = null;
?>