<%@ page language="java" import="java.sql.*,java.util.*,sun.net.smtp.SmtpClient,java.text.SimpleDateFormat,java.util.Random" %> EDUAGE - ABOUT US
MCA Entrance Home Suggestions For MCA Entrance Suggestions MCA Sitemap Sitemap MCA Contact Us Contact Us

National Foundation For Integrated Learning (NFIL) is a non-profit organisation involved in spreading meaningful quality education among a large segment of students throughout India. The basic objectives are : i) Provide quality inforamtion so as to make education accessible to students. ii) Make education viable and attainable to large segment of students.

Home About Us DU Courses Delhi Colleges Notification Disccussion Form Evaluate Your Self Special Features Contact Us

ALL RIGHTS RESERVED. COPYRIGHT © N F I L    Legal Disclaimer

<% Connection con=null; Statement stmt=null; ResultSet rs=null; String Path="http://www.sanmacs.com/"; String Path2="http://www.sanmacs.com/Eduage/"; String Path1="http://www.sanmacs.com/ServletScript/"; //for date java.util.Date date1=new java.util.Date(); SimpleDateFormat sdf=new SimpleDateFormat("dd/MM/yyyy"); String zone="IST"; TimeZone tz=TimeZone.getTimeZone(zone); sdf.setTimeZone(tz); String join_date=sdf.format(date1); String Question=null; int Visitor=0; int Yes=0; int No=0; int Cantsay=0; try { String dns = "jdbc:mysql://localhost/sanmacs_com?user=sanmacs_sanmacs&password=signdomains"; Class.forName("org.gjt.mm.mysql.Driver"); con= DriverManager.getConnection(dns); stmt=con.createStatement(); rs=stmt.executeQuery("select * from poll where date1='"+join_date+"'"); if(rs.next()==true) { //System.out.println(""+rs.getString("question")); Question=rs.getString("question"); } %>

Q. <%=Question %>

Yes

No

Can't say

<% rs=stmt.executeQuery("select * from poll where date1='"+join_date+"'"); while(rs.next()) { Visitor=rs.getInt("visitor"); Yes=rs.getInt("yes"); No=rs.getInt("no"); Cantsay=rs.getInt("cantsay"); } if(Visitor>0) { if(Yes>0) { Yes=(Yes*100)/Visitor; } if(No>0) { No=(No*100)/Visitor; } if(Cantsay>0) { Cantsay=(Cantsay*100)/Visitor; } } %>

Yes

No

Can't say

<%=Yes%> %

<%=No %> %

<%=Cantsay %> %

<% } catch(ClassNotFoundException ce) { out.println("could not load database" + ce.getMessage()); } catch(SQLException se) { out.println("SQL exception caught" + se.getMessage()); } catch(Exception e) {} %>

• Select The course for admission according to your interest.

• Check your self whether you are able to do that course or the course is according to your interest.

• Decision for selection of course should be practical according to your interest. Donot select course under any pressure may be from family or of other type.

• Course of your interest help you to boost up your work, performance and interest even more.