picture_add_operate.jsp
上传用户:zdly666
上传日期:2022-08-09
资源大小:6511k
文件大小:1k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

JavaScript

  1. <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
  2. <%@page import="java.util.Date"%>
  3. <%@page import="java.util.*"%>
  4. <%@page import="java.text.*"%>
  5. <%@ include file="conn.jsp" %>
  6. <%
  7. String picture_title=new String(request.getParameter("picture_title").getBytes("iso-8859-1"));
  8. String picture = new String(request.getParameter("picture").getBytes("iso-8859-1"));
  9. String picture_tro = new String(request.getParameter("picture_tro").getBytes("iso-8859-1"));
  10. String condition="insert into picture (picture_title,picture,picture_tro) values('"+picture_title+"','"+picture+"','"+picture_tro+"')";
  11. stmt.executeUpdate(condition);
  12. stmt.close(); 
  13. conn.close();
  14. response.sendRedirect("picture1.jsp");
  15. %>