public String editChristmasWishlist(String wish)
{
try
{
ConnectionManager con = new ConnectionManager();
Statement stmt = con.logOn().createStatement();
String msg = "";
String sql = "update from wishes where gift="+wish;
if (stmt.execute(sql))
{
msg = "update failed";
} else
{
msg = "update successfully";
}
con.logOff();
return msg;
} catch (SQLException e)
{
return "Add failed. SQL error " + e.getMessage();
} catch (java.lang.NullPointerException ne)
{
return "<p>Null error: " + ne.getMessage();
}
}
Please help me make this code work...