New site for Items
This commit is contained in:
parent
e0eddae933
commit
02161b549c
1 changed files with 22 additions and 0 deletions
22
show_ci.php
Normal file
22
show_ci.php
Normal 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;
|
||||
?>
|
Loading…
Reference in a new issue