<%@ page language="java" import="java.sql.*" %> <%! int counter; %> <% int counter; //Creating Connection Calling the useBean (dbBean) java.sql.Connection myConn = dbBean.getConnection(); //Opening Statement java.sql.Statement stmt=myConn.createStatement(); //ResultSet from Query ResultSet rSet = null; String cmid = request.getParameter("CMCat_Id"); int CMCat_Id = (new Integer(cmid)).intValue(); String strArr[][]; int intArr[][]; %> More Cards...
sentiment logo.
Greeting Cards!Make your own e-Album!Who we are?
 Home | e-Album | About Us | Disclaimer | Privacy Policy
 


<% boolean FLAG_exst = false; int oldValue =0; int newValue = 0; int totSubCat =0; rSet = stmt.executeQuery("SELECT CSCat_Id FROM cardmaster WHERE CMCat_Id ="+CMCat_Id); if (rSet != null) { while (rSet.next()) { FLAG_exst = true; newValue = rSet.getInt ("CSCat_Id"); if (newValue != oldValue ){ totSubCat++; oldValue = newValue; }//End of IF newValue } // end of While rSet } // End of If rSet if (totSubCat==0 && FLAG_exst==false ){ %>
Sorry! We have no collection regarding your choice,
We are continue to update our cards collection. You can check us
later on. To check Other collection click below.
<% } else { strArr = new String[6][3]; intArr = new int[6][2]; rSet = stmt.executeQuery("SELECT * FROM cardmaster WHERE CMCat_Id ="+CMCat_Id+" AND Card_Priority='M'"); if (rSet != null) { counter =0; while (rSet.next()) { strArr[counter][0] = rSet.getString("Card_Icon"); strArr[counter][1] = rSet.getString("CTitle"); strArr[counter][2] = rSet.getString("Card_Desrp"); intArr[counter][0] = rSet.getInt("CMCat_Id"); intArr[counter][1] = rSet.getInt("CSCat_Id"); counter++; } //End of while rSet } //End of if rSet %>

<%if (strArr[0][2] != null) { %><%=strArr[0][2]%><% } %>

<%if (strArr[1][2] != null) { %> <%=strArr[1][2]%> <% } %>

<%if (strArr[2][2] != null) { %><%=strArr[2][2]%><% } %>
<%=strArr[0][1]%><%=strArr[1][1]%><%=strArr[2][1]%>

<%if (strArr[3][2] != null) { %><%=strArr[3][2]%><% } %>

<%if (strArr[4][2] != null) { %><%=strArr[4][2]%><% } %>

<%if (strArr[5][2] != null) { %><%=strArr[5][2]%><% } %>
<%=strArr[3][1]%><%=strArr[4][1]%><%=strArr[5][1]%>
<% } //end of else %>
At WorkBirthday
Events & HolidaysEvery Day
FamilyFlowers
FriendshipKids
LoveReligion
SpecialsWedding
 
  
 Home | e-Album | About Us | Disclaimer | Privacy Policy 
 

© 2001 Sentimentexpress.com
All Rights Reserved

<% stmt.close(); myConn.close(); %>