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 "= $category_name ?>". Select a business to view its details.
# | Business Name | Action |
---|---|---|
= $i ?>. | = $row['business_name'] ?> | View |