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