TwiHotels : Twihotels on Twitter
<%@ include file="connectionDB.jsp" %>
<%@ include file="header.jsp" %>
<%
ResultSet rs = null;
Statement st = null;
String sql = "";
try {
int total = 0;
sql = "select count(Id) as cid from protweets";
st = con.createStatement();
rs = st.executeQuery(sql);
if(rs.next())
total = rs.getInt("cid");
total = total-10;
%>
<%
sql = "select Tweet, URL from protweets order by Id desc limit 0,10";
st = con.createStatement();
rs = st.executeQuery(sql);
%>