Powered by Blogger.

Featured Posts

Business

More

Recent

Comment

Blogger news

Recent Comments

Thursday, August 13, 2015

No comments :
<%@ page import="java.sql.*"%>
<% Class.forName("com.mysql.jdbc.Driver").newInstance(); Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/cms","root", "root"); Statement st=connection.createStatement(); ResultSet rs=st.executeQuery("Select * from quiz"); int i=1; while(rs.next()){ %> <% i++; } %>
<%=i%> <%=rs.getString("quest")%> <%=rs.getString("QA")%> <%=rs.getString("QB")%> <%=rs.getString("QC")%> <%=rs.getString("QD")%>

No comments :

Post a Comment