|
|
<%
strSQL = "SELECT itemid,Artist, Album, Description, Price, Format" _
& " FROM items " _
& " WHERE (DVD =-1)" _
& " ORDER BY Format,Artist;"
'response.write strSQL
'response.end
'Open our recordset
rs.Open strSQL, cnn, adOpenStatic, adLockReadOnly, adCmdText
if rs.eof then
response.write "No Records Found-Please try again."
response.end
End If
%>
<%
' Get a count of the number of records and pages
iPageCurrent = rs.AbsolutePage
iRecordCount = rs.RecordCount
iPageCount = rs.PageCount
' Show a quick status line letting people know where they are:
%>
<%= iRecordCount %> Records Found.
| Artist |
Title |
Format |
Price |
<%
'formatSave = ""
do while not rs.eof
%>
<%
orderbutton = "" & _
"Order "
'if rs("format") <> formatsave then
' response.write " | " & _
' "*** Format: " & rs("format") & " *** | " & vbcrlf
'end if
%>
| <%= rs.Fields("Artist").Value %> |
<%= rs.Fields("Album").Value %> |
<%= rs.Fields("Format").Value %> |
$<%= rs.Fields("Price").Value %>.00 <%=orderbutton%> |
| <%= rs.Fields("Description").Value %> | |
|
<%
rs.movenext
loop
%>

Top
|
|