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;
?>