相关代码 |
|
String column=request.getParameter("column").trim(); String id=request.getParameter("id").trim(); String re=request.getParameter(column).trim(); re=new String(re.getBytes("8859_1"),"GB2312"); String sql="UPDATE user_info SET "+column+"='"+re+"' WHERE user_name='"+id+"'"; Stmt.executeUpdate(sql); Stmt.close(); Conn.close(); response.sendRedirect("user_info.jsp"); %>
相关资源 |
|