Guest User

Untitled

a guest
Aug 14th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. String query = "INSERT INTO productos(nombre,img_producto,id_categoria, precio,stock) VALUES ('" +nombre+ "','" + img_producto + "','" + id_categoria + "','" + precio + "','" + stock + "');";
  2. Statement stm = c.createStatement();
  3. stm.executeUpdate(query);
  4. stm.close();
  5. c.close();
  6.  
  7. </script>
Add Comment
Please, Sign In to add comment