Statement stmt = myConn.createStatement(); int rowsAffected = stmt.executeUpdate("add Qtypurchase into IQty from item where ItemID=" + ItemID4); if (rowsAffected == 1) { %> <h1>Successful Update of Purchase Item</h1> The stock item has been modified. <p> <a href="idbquery.jsp">See all stock items</a><br>
<a href="icontrol.html">Go back to control center</a> <% } else { %> <h1>Sorry, purchase update has failed.</h1> <a href="icontrol.html">Go back to control center</a> <% } stmt.close(); myConn.close(); %> </body> </html>
Frank Carver
Sheriff
Joined: Jan 07, 1999
Posts: 6913
posted
0
This topic has been closed as it is a duplicate of a post in the JDBC forum.