<?php
//Get ID
$category_id = filter_input(INPUT_POST, 'category_id', FILTER_VALIDATE_INT);
//Validate inputs
if ($category_id == null || $category_id == false) {
$error = "Invalid category ID.";
include('error.php');
} else {
require_once('database.php');
// Delete the product from the database
$query = 'DELETE FROM categories
WHERE categoryID = :category_id';
$statement = $db->prepare($query);
$statement->bindValue(':category_id', $category_id);
$statement->execute();
$statement->closeCursor();
// Display the Category List page
**include('category_list.php');**
** is line 32. I got error :
syntax error, unexpected end of file in D:\xampp\htdocs\ex_starts\ch04_ex1\delete_category.php