Closed norhusna closed 3 years ago
<?php
//Add new menu (category)
if (isset($_POST['addmenu'])) {
if (!empty($_POST['menuname'])) {
$menuname = $sqlconnection->real_escape_string($_POST['menuname']);
$addMenuQuery = "INSERT INTO tbl_menu (menuName) VALUES ('{$menuname}')";
if ($sqlconnection->query($addMenuQuery) === TRUE) {
header("Location: menu.php");
} else {
//handle
echo "someting wong";
}
}
//No input handle
else {
echo "...";
}
}
?>
the change request has been completed and the issues will be closed
Unable to add category in the menu management