<%@ page language ="java" errorPage="ExceptionHandler.jsp"%> <%@ page import ="java.sql.*" %> <%@ page session="true"%> <%@ page import ="db.*" %> <%@ page import ="java.util.Random" %> <%! ResultSet rstheam=null; String theam=""; ResultSet rs=null; ResultSet rs_sms=null; String uname="nolog"; Random generator = new Random(); int sms_int =generator.nextInt(9); String user_session=""; Connection con=null; int maximum = 0; String mob=""; String address=""; String uniquebid=""; String gift=""; String dispdt=""; String pop=""; %> <% session.setAttribute("user_name", uname); con=ConnectionFactory.getConnection(); Statement sttheam = con.createStatement(); rstheam=sttheam.executeQuery("select * from theams where display='Y'"); while(rstheam.next()) { theam=rstheam.getString("color_pg"); } rstheam.close(); sttheam.close(); if(sms_int==0) { sms_int=1; } Statement stpop = con.createStatement(); ResultSet rspop=stpop.executeQuery("select * from showpopup where popidval="+1); while(rspop.next()) { pop=rspop.getString("showing"); } rspop.close(); stpop.close(); %> Welcome to Smscontest.com <%if (pop.equals("Y")){%> <%} else { %> <%}%>
<%Statement stlist = con.createStatement(); ResultSet rslist=stlist.executeQuery("Select MAX(mar_id) maxid from marqueetab"); while(rslist.next()) { maximum=rslist.getInt("maxid"); } rslist.close(); stlist.close(); Statement stwin = con.createStatement(); ResultSet rswin=stwin.executeQuery("Select * from marqueetab where mar_id="+maximum); while(rswin.next()) { uniquebid=rswin.getString("mar_text"); } rswin.close(); stwin.close(); con.close(); %>
<% try{ sttheam = con.createStatement(); sttheam.executeUpdate("update contest_detail set Contest_Hit = Contest_Hit+1 where Contest_Name = 'ADORA' and Pk_Contest_Keyword = 'ADORA'"); }catch(Exception _e){ out.println("Count Not Updated !!" + _e.getMessage()); } %>
Adora Your Love Forever Contest


ENTER CONTEST





<%=uniquebid%>