PHP Classes

File: fwphp/01mater/shop/ch24_guitar_shop/catalog/category_view.php

Recommend this page to a friend!
  Classes of Slavko Srakocic  >  B12 PHP FW  >  fwphp/01mater/shop/ch24_guitar_shop/catalog/category_view.php  >  Download  
File: fwphp/01mater/shop/ch24_guitar_shop/catalog/category_view.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change:
Date: 2 months ago
Size: 601 bytes


Class file image Download
<?php include '../view/header.php'; ?>
include '../view/sidebar.php'; ?>
    <h1><?php echo htmlspecialchars($category_name); ?></h1>
    <?php if (count($products) == 0) : ?>
<p>There are no products in this category.</p>
    <?php else: ?>
<?php foreach ($products as $product) : ?>
            <a href="<?php echo '?product_id=' . $product['productID']; ?>">
                <?php echo htmlspecialchars($product['productName']); ?>
        <?php endforeach; ?>
<?php endif; ?>
<?php include '../view/footer.php'; ?>

For more information send a message to info at phpclasses dot org.