Thats cool! I have no problem. But I have been trying several things for the last 2 days with this. I actually wanted to have the latest 20 days of NEW records open in the main index page but I will settle for it with the top header as the code attached is for.
*** This site works off of a side navigator, top scrolling navigator, bottom footer, and a main index page. So, it is not as easy as one may think or is it just me!!!
Code below for record list which also ties in with the main index when clicked, and ctrings from a category listing.
<%
Category = Request.ServerVariables("QUERY_STRING")
%><!--#include virtual="/include/Connection.asp"--><%
Dim Conntemp
OpenConnection
'set CatGirls = conntemp.execute("select id, name from Girls G, CategoryGirl CG where G.active=1 and G.id=CG.girl_id and CG.cat_id = " & Category)
set CatGirls = conntemp.execute("select thumb1, thumb2, thumb3, thumb4, thumb5, thumb6, thumb7, thumb8 from Categories where id = " & Category)
set CatName = conntemp.execute("select cat_name from Categories where id = " & Category)
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
@import url("/ccs/css_tophead.css");
-->
</style>
</head>
<body bgcolor="#FFCC00" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table border="1" cellpadding="0" cellspacing="1" bordercolor="#003366" bgcolor="#003399"><!--DWLayoutTable-->
<tr>
<%
For x=0 to 7
If (CatGirls(x)) Then
set GirlName = conntemp.execute("select name, ad_title, incall, outcall, travel from Girls where id=" & CatGirls(x))
%>
<td valign="top">
<table border="0" cellpadding=1 cellspacing=2 bordercolor="#0033CC">
<tr>
<td colspan=2 align=center valign="top" nowrap bgcolor="#660099"><font size="2" face="Arial, Helvetica, sans-serif"><a href="girldetail.asp?girl=<%=CatGirls(x)%>&pic=1&cat=<%=Category%>" target="mainFrame"><strong><%=GirlName(0)%></strong></a></font></td>
</tr>
<tr>
<td bgcolor="#660099"><a href="girldetail.asp?girl=<%=CatGirls(x)%>&pic=1&cat=<%=Category%>" target="mainFrame"><img src="/pictures/<%=CatGirls(x)%>/thumbs/1.jpg" alt="" border=0 align="absmiddle"></a></td>
<td align="right" nowrap bgcolor="#660099"> <%
If (GirlName(2)) Then
%> <img src="../images/icons/in.gif" alt="" width="11" height="30"> <%
End If
If (GirlName(3)) Then
%> <img src="../images/icons/out.gif" alt="" width="11" height="30"><br>
<%
End If
If (GirlName(4)) Then
%> <img src="../images/travel.gif" alt="" width="20" height="20"> <%
End If
%>
</td>
</tr>
<tr>
<td colspan=2 align=center nowrap bgcolor="#FFCC00"><font color="#0000FF" face="Arial, Helvetica, sans-serif" size="-2"><b><%=GirlName(1)%></b></font></td>
</tr>
</table>
</td>
<td valign="top" bgcolor="#0066CC"> </td>
<%
Top8String = Top8String & "," & CatGirls(x)
End If
Next
set RestOfGirls = conntemp.execute("select id, name, ad_title, incall, outcall, travel from Girls where active=1 AND id IN (select girl_id from CategoryGirl where cat_id = " & Category & ") order by id")
Do While Not RestOfGirls.eof
If (InStr(Top8String, RestOfGirls(0)) = 0) Then
%>
<td valign="top"><table border="0" cellpadding=1 cellspacing=2>
<tr bgcolor="#660099">
<td colspan=2 align=center valign="top" nowrap><font size="2" face="Arial, Helvetica, sans-serif"><a href="girldetail.asp?girl=<%=RestOfGirls(0)%>&pic=1&cat=<%=Category%>" target="mainFrame"><strong><%=RestOfGirls(1)%></strong></a></font></td>
</tr>
<tr>
<td nowrap bgcolor="#660099"><a href="girldetail.asp?girl=<%=RestOfGirls(0)%>&pic=1&cat=<%=Category%>" target="mainFrame"><img src="/pictures/<%=RestOfGirls(0)%>/thumbs/1.jpg" alt="" border=0 align="absmiddle"></a></td>
<td align="right" nowrap bgcolor="#660099"> <%
If (RestOfGirls(3)) Then
%> <img src="../images/icons/in.gif" alt="" width="11" height="30"> <%
End If
If (RestOfGirls(4)) Then
%> <img src="../images/icons/out.gif" alt="" width="11" height="30"><br>
<%
End If
If (RestOfGirls(5)) Then
%> <img src="../images/travel.gif" alt="" width="20" height="20"> <%
End If
%>
</td>
</tr>
<tr bgcolor="#FFCC00">
<td colspan=2 align=center nowrap bordercolor="#FFCC00"><font color="#0000FF" face="Arial, Helvetica, sans-serif" size="-2"><b><%=RestOfGirls(2)%></b></font></td>
</tr>
&nb