Contact us Delete -
<%
String id=request.getParameter("msg");
DbManager db=new DbManager();
String cmd="delete from contactus where id='"+id+"'";
boolean n=db.ExecuteInsertUpdateDelete(cmd);
if(n==true)
{
out.print("<script>alert('DATA DELETE SUCCESSFULLY..');window.location.href='../contactmng.jsp';</script>");
}
else
{
out.print("<script>alert('DATA NOT DELETED');window.location.href='../contactmng.jsp';</script>");
}
0 Comments