Item Dashboard
Item's Inventory
prepare("INSERT INTO `item_master` (`item_name`, `unit`, `hsn`, `cgst`, `sgst`, `igst`, `description`, `created_at`) VALUES (?, ?, ?, ?, ?, ?, ?, ?)"); if ($stmt) { // Bind parameters: s = string, s = string, s = string $stmt->bind_param("ssssssss", $item_name, $unit, $hsn, $cgst, $sgst, $igst, $description, $created_at); // Execute the statement if ($stmt->execute()) { echo ""; // Optionally redirect or clear form here } else { echo "Error executing query: " . $stmt->error; } $stmt->close(); } else { echo "Failed to prepare statement: " . $conn->error; } } require_once('includes/header.php'); ?>