Hi,
I am using a horizontal looper to display multiple rows/columns of info from the SQL server. I configured the looper to display the results in 20 rows and 2 columns. I only seem to get 2 rows and 2 columns returned, and the data seems to be random??
This is my select statement:
QueryDB.Source = "SELECT * FROM dbo.Inventory WHERE ProductCat = '" + Replace(QueryDB__MMColParam, "'", "''"
+ "'"
Somehow the database returns only 4 items? when I run a test on the recordset it works fine. Here is my ASP code..
<%
startrw = 0
endrw = HLooper1__index
numberColumns = 2
numrows = 15
while((numrows <> 0) AND (Not QueryDB.EOF))
startrw = endrw + 1
endrw = endrw + numberColumns
%>
<tr align="center" valign="middle">
<%
While ((startrw <= endrw) AND (Not QueryDB.EOF))
%>
<td> <img src="<%=QueryDB("ImageLoc"
%>" width="70" height="70"">
</td>
<td width="125"> <div align="left"><font color="#0000CC" size="1" face="Tahoma"><%=(QueryDB.Fields("ProductType"
)%><strong><%="<br> Price $"%><%=(QueryDB.Fields("SalePrice"
)%></strong></font> </div>
<td width="250"><div align="left"><font color="#990000" face="Tahoma"><strong><%=(QueryDB.Fields("ProductMake"
)%><%=(QueryDB.Fields("ProductDescription"
)%><strong> </font> </div>
<td> <%QueryDB.MoveNext%> </td>
<%
startrw = startrw + 1
QueryDB.MoveNext()
Wend
numrows=numrows-1
Wend
%>
I am using a horizontal looper to display multiple rows/columns of info from the SQL server. I configured the looper to display the results in 20 rows and 2 columns. I only seem to get 2 rows and 2 columns returned, and the data seems to be random??
This is my select statement:
QueryDB.Source = "SELECT * FROM dbo.Inventory WHERE ProductCat = '" + Replace(QueryDB__MMColParam, "'", "''"
Somehow the database returns only 4 items? when I run a test on the recordset it works fine. Here is my ASP code..
<%
startrw = 0
endrw = HLooper1__index
numberColumns = 2
numrows = 15
while((numrows <> 0) AND (Not QueryDB.EOF))
startrw = endrw + 1
endrw = endrw + numberColumns
%>
<tr align="center" valign="middle">
<%
While ((startrw <= endrw) AND (Not QueryDB.EOF))
%>
<td> <img src="<%=QueryDB("ImageLoc"
</td>
<td width="125"> <div align="left"><font color="#0000CC" size="1" face="Tahoma"><%=(QueryDB.Fields("ProductType"
<td width="250"><div align="left"><font color="#990000" face="Tahoma"><strong><%=(QueryDB.Fields("ProductMake"
<td> <%QueryDB.MoveNext%> </td>
<%
startrw = startrw + 1
QueryDB.MoveNext()
Wend
numrows=numrows-1
Wend
%>