prepare("INSERT INTO `company_master` (`c_name`, `c_short`, `c_address`, `c_email`, `c_mobile`, `c_pincode`, `c_gstin`, `c_state`, `c_inv`, `created_at`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"); if ($stmt) { // Bind parameters: s = string, s = string, s = string $stmt->bind_param("ssssssssss", $c_name, $c_short, $c_address, $c_email, $c_mobile, $c_pincode, $c_gstin, $c_state, $c_inv, $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'); ?>