 |
|
您现在的位置:首页 >> <%=owen1%> |
|
<%
//Statement st = null; ResultSet rs = null;
try{
//String
if("院校介绍".equals(owen1))
sql = "select * from news2 where BigClassName='"+owen1+"' order by id asc";
else
sql = "select * from news2 where BigClassName='"+owen1+"' order by id desc";
st = conn.createStatement();
rs = st.executeQuery(sql);
int m=0;
while(rs.next()){m++;
%>
 |
" target="_blank"><%= MyString.briefString(rs.getString("title"),30) %> (阅读<%= rs.getString("Hints") %>次) |
<%
}//end else
if(m==0)
out.println("暂时没有记录");
}//end try
catch(Exception e){ out.println(e.toString());
}
finally{
if(st!=null){ st.close();st=null;}
if(conn!=null) {conn.close();conn=null;}
}
%>
|
|
|