JSP编程相关
源代码在线查看: myfriend.jsp
我的通讯录
姓名电话住址邮件
stmt = con.createStatement() ;
rs=stmt.executeQuery("SELECT * from myfriend where myname='"+(String) session.getAttribute("username")+"' order by id desc");
String pages = request.getParameter("page") ;
int pageInt = 1 ,i=0 ,k=1;
if(pages==null){}else{pageInt = Integer.parseInt(pages);}
while(i i=0;
while(rs.next()&i i++ ;
%>
[发邮件]
}
%>
rs=stmt.executeQuery("SELECT count(*) from myfriend where myname='"+(String) session.getAttribute("username")+"' ");
%>