<?php include_once 'classes/database.php'; if (empty($_SESSION['logged_in'])) { header('location:index.php'); } if ($_SESSION['role'] == "employee") { header('location:home.php'); } $flag = false; if (isset($_POST['btn_add_product'])) { $db = new Database(); $info = array('product_name' => $_POST['product_name']); $response = $db->addProductCategory($info); $flag = true; } ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Chanchal Garments</title> <link href="assets/css/bootstrap.min.css" rel="stylesheet"> <link href="assets/font-awesome/css/font-awesome.css" rel="stylesheet"> <link href="assets/css/animate.css" rel="stylesheet"> <link href="assets/css/jquery.gritter.css" rel="stylesheet"> <link href="assets/css/style.css" rel="stylesheet"> <link href="assets/css/custom.css" rel="stylesheet"> </head> <body>