<%
sql="select top 9 * from xx where class='news'"
// 假设已经取得了 java.sql.Connectino 对象,conn
Statement stat = conn.createStatement()
ResultSet rs = stat.execute(sql);
%>
<table cellspacing=0 cellpadding=2 width="100%" border=0>
<%while (rs.next()) {%>
<tr>
<td height=10>
<a href="" target=_blank><%=rs.getString("title")%></a></td>
</tr>
<%
}
%>
sql="select top 9 * from xx where class='news'"
// 假设已经取得了 java.sql.Connectino 对象,conn
Statement stat = conn.createStatement()
ResultSet rs = stat.execute(sql);
%>
<table cellspacing=0 cellpadding=2 width="100%" border=0>
<%while (rs.next()) {%>
<tr>
<td height=10>
<a href="" target=_blank><%=rs.getString("title")%></a></td>
</tr>
<%
}
%>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货