} if (isset($_GET['del'])) { $id = $_GET['id']; $del = $_GET['del']; $delete = $memo->delete_customer($del); if ($delete) { $delete_customer_info_also = $memo->delete_customer_info_also($del); header("Location:todaymemo.php?id={$id}"); $_SESSION['msg'] = "Customer Delete Successful"; } } $cid = $_GET['id']; if (isset($_POST['submit'])) { extract($_POST); $mid = $_GET['id']; $addcustomer = $memo->add_customer($mid, $name, $det, $ddate, $time); if ($addcustomer) { header("Location:todaymemo.php?id={$mid}"); $_SESSION['msg'] = "Customer Create Successful"; } else { $msg = "Please Enter A Customer Name"; } } include 'layouts/header.php'; include 'layouts/sidebar_layout.php'; ?> <div class="main_body"> <div class="headline"><?php $memo->show_today_or_not($cid); ?> <a href="costs.php?id=<?php