prepare($sql); $stm->execute([':id' => $category_id]); $category_name = $stm->fetch()[0]; /** * Go back with an error message if the category with this id does not exist. */ if (empty($category_name)) { header('Location: /categories.php?err=bad_id'); exit(); } $pageTitle = 'Category: ' . $category_name; $pageSlug = 'categories'; require_once('./inc/head.php'); require_once('./inc/header.php'); ?>

This is a list of all businesses that belong to the category "". Select a business to view its details.

prepare($sql); $stm->execute([':id' => $category_id]); foreach ($stm->fetchAll() as $row) { $i++; ?>
# Business Name Action
. View