Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String query = "INSERT INTO productos(nombre,img_producto,id_categoria, precio,stock) VALUES ('" +nombre+ "','" + img_producto + "','" + id_categoria + "','" + precio + "','" + stock + "');";
- Statement stm = c.createStatement();
- stm.executeUpdate(query);
- stm.close();
- c.close();
- </script>
Add Comment
Please, Sign In to add comment