diff --git a/shop-routes/product.js b/shop-routes/product.js
index 6dc88d7025892f0f6aa160eec9166c1d09534212..b9041d845529484d5c7a6134f04a7f1bd39d1dc9 100644
--- a/shop-routes/product.js
+++ b/shop-routes/product.js
@@ -41,36 +41,26 @@ router.get("/add", (req, res) => {
 });
 
 // เน€เธžเธดเนˆเธกเธชเธดเธ™เธ„เน‰เธฒเนƒเธซเธกเนˆเธžเธฃเน‰เธญเธกเธฃเธนเธ›
-router.post("/add", upload.single("image"), async (req, res) => {
-    try {
-        console.log("Request received:", req.body);
-        console.log("Uploaded file:", req.file);
+router.post("/add", upload.single("image"), async (req, res) => { // เน€เธ›เธฅเธตเนˆเธขเธ™เธˆเธฒเธ "images" เน€เธ›เน‡เธ™ "image" เนƒเธซเน‰เธ•เธฃเธ‡เธเธฑเธš name เธ‚เธญเธ‡ input file
+    console.log("req.file:", req.file); // เธ•เธฃเธงเธˆเธชเธญเธšเธงเนˆเธฒ multer เน„เธ”เน‰เธฃเธฑเธšเน„เธŸเธฅเนŒเธซเธฃเธทเธญเน„เธกเนˆ
 
-        if (!req.file) {
-            console.error("Error: No file uploaded!");
-            return res.status(400).json({ message: "File upload failed" });
-        }
+    try {
+        const { name, price, stock, description } = req.body; // เน€เธžเธดเนˆเธก description
 
-        const { name, price, stock, description } = req.body;
         const imagePath = "/uploads/" + req.file.filename;
 
-        const sql = "INSERT INTO products (name, price, stock, description, image_url) VALUES (?, ?, ?, ?, ?)";
-        const values = [name, price, stock, description, imagePath];
-
-        console.log("SQL Query:", sql);
-        console.log("Values:", values);
-
-        await pool.execute(sql, values);
-        res.status(201).json({ success: true, message: "Product added successfully!" });
+        await pool.execute(
+            "INSERT INTO products (name, price, stock, description, image_url) VALUES (?, ?, ?, ?, ?)",
+            [name, price, stock, description, imagePath] // เน€เธžเธดเนˆเธก description
+        );
 
+        res.redirect("/products");
     } catch (error) {
-        console.error("Server Error:", error);
-        res.status(500).json({ message: "Internal Server Error", error: error.message });
+        console.error("Error adding product:", error);
+        res.status(500).send("Error adding product.");
     }
 });
 
-
-
 // เธ”เธถเธ‡เธ‚เน‰เธญเธกเธนเธฅเธชเธดเธ™เธ„เน‰เธฒเธ•เธฒเธก ID เนเธฅเธฐเนเธชเธ”เธ‡เธซเธ™เน‰เธฒเนเธเน‰เน„เธ‚
 router.get("/edit/:id", async (req, res) => {
     try {