这是一个图书馆系统

源代码在线查看: deleteuser.jsp~10~

软件大小: 882 K
上传用户: zhangyuntong
关键词: 图书馆
下载地址: 免注册下载 普通下载 VIP

相关代码

				
				
				
				
				
				Delete user
				
								.style3 {font-size: 24px}
				.style4 {font-size: 18px}
				-->
				
				
				
				
				  
				    
				      
				        
				          
				        
				      
				    
				    
				      
				        
				          
				            
				               
				               
				            
				            
				              
				               Adduser 
				            
				            
				               
				              
				            
				            
				              
				              Modifyuser
				            
				            
				               
				              
				            
				            
				              
				              Deletuser
				            
				            
				               
				              
				            
				            
				              
				              Searchuser
				            
				            
				               
				              
				            
				            
				             
				              Addbook
				            
				            
				               
				              
				            
				            
				              
				              Deletebook
				            
				            
				               
				              
				            
				            
				              
				              Borrowsearch
				            
				            
				               
				              
				            
				            
				              
				              Search
				            
				            
				               
				              
				            
				            
				              
				              Userpay
				            
				            
				               
				              
				            
				             
				              
				              Update
				            
				            
				               
				              
				            
				            
				               
				               
				            
				          
				        
				        
				           
				        
				      
				      
				        
				          Delete user 
				          
				        
				          ID:
				          
				          
				          ***
				        
				        
				                      
				            
				              
				              
				            
				          
				          
				      
				    
				    
				       
				      
				    
				  
				
				
				
				
				
								
				
				try{
				  if(request.getParameter("deleteuserenter")!=null){
				    Connection conn=Library.getConn();
				  Statement stmt=conn.createStatement();
				String id = request.getParameter("deleteuserid");
				
				    String deleteStr = "delete from user where id ='" + id + "'";
				    stmt.execute(deleteStr);
				    response.sendRedirect("success.jsp");
				  }
				
				}catch (Exception ex) {
				  response.sendRedirect("fail.jsp");
				ex.printStackTrace();}
				
				%>
				
				
				
				
							

相关资源