<%
dim objPro
Set objPro = Server.CreateObject("ADODB.Recordset")
objPro.ActiveConnection = Category_STRING
objPro.Source = "SELECT * FROM Product order by DateAdded desc"
objPro.CursorType = 0
objPro.CursorLocation = 2
objPro.LockType = 3
objPro.Open()
%>
<%
recCount = 0
DO WHILE (NOT objPro.EOF) AND (recCount < 4)
recCount = recCount + 1
%>
" class="navlink2""><%=objPro("Name")%>
<%
objPro.MOVENEXT
LOOP
objPro.Close
Set objPro = Nothing
%>
PDF Catalog Download our product catalog in PDF format
Catalog
Display all available category and its product.
<%
dim objCategory1
Set objCategory1 = Server.CreateObject("ADODB.Recordset")
objCategory1.ActiveConnection = Category_STRING
objCategory1.Source = "SELECT * FROM Category order by DateAdded ASC"
objCategory1.CursorType = 0
objCategory1.CursorLocation = 2
objCategory1.LockType = 3
objCategory1.Open()
dim ikira1
ikira1 = 1
%>
<%DO WHILE NOT objCategory1.EOF%>
<% x_ID1 = cint(objCategory1("ID")) %>
<%=objCategory1("Title")%> (Total:
<%
Dim objAdminPro
Set objAdminPro = Server.CreateObject("ADODB.Recordset")
objAdminPro.ActiveConnection = Category_STRING
objAdminPro.Source = "SELECT COUNT (*) as TOTAL FROM product Where Category = '"& x_ID1 &"'"
objAdminPro.CursorType = 0
objAdminPro.CursorLocation = 2
objAdminPro.LockType = 3
objAdminPro.Open()
if NOT objAdminPro.EOF then
%>
<%=objAdminPro("TOTAL")%> items)