Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recordset paging and thumbnail click

Status
Not open for further replies.

Dostani

MIS
Jul 26, 2002
60
US
I need to know if this is possible or if there is a cure for the problem. I need to have a page of 78 thumbnails displayed from a database in a page which only 20 thumbnails are shown, using a recordset navigation forward/reverse to show the next page of thumbnails in the category plus have the ability to click on thumbnail and got to the detail page. I am using all the standard MM extensions with the exception of the horizontal loop 2 extension which allows the thumbnails to be listed horizontally then down to the next row. So far I have been able to use the extension and the navigation together but when the Go to Detail page is applied everything goes south. I can't fiqure out what is happening or how to resolve the problem. Any help is appreciated as always.

URL =
 
well you could modify with some hand code.

make your detail page - base the recordset off of query string of pictureID

on the gallery page.

where you call for the image. Add a ahref tag.

<a href=&quot;detail.asp?pictureID=<%recordset1.fields.item(&quot;id&quot;).value%>&quot;><img src=&quot;images/<%recordset1.fields.item(&quot;imagefile&quot;)%>&quot;></a>

obviously change the above code to reflect.

But that will take the images related ID and give you the ability to click an image, taking forward the id to base your detail page upon. &quot;Never underestimate the power of determination&quot;

Stuart
 
Thanks Stuart,

I failed to release the actual code for this. I can't see where I should be tagging your suggestion at??? A little assistance please?

Robert

<%@LANGUAGE=&quot;VBSCRIPT&quot;%>
<!--#include file=&quot;DUMMY&quot; -->
<%
Dim rsBikes__MMColParam
rsBikes__MMColParam = &quot;BIKE&quot;
If (Request(&quot;MM_EmptyValue&quot;) <> &quot;&quot;) Then
rsBikes__MMColParam = Request(&quot;MM_EmptyValue&quot;)
End If
%>
<%
Dim rsBikes
Dim rsBikes_numRows

Set rsBikes = Server.CreateObject(&quot;ADODB.Recordset&quot;)
rsBikes.ActiveConnection = MM_Illusions_STRING
rsBikes.Source = &quot;SELECT ArtPicNumber, ArtCategory, PicThumb FROM ArtPics WHERE ArtCategory = '&quot; + Replace(rsBikes__MMColParam, &quot;'&quot;, &quot;''&quot;) + &quot;'&quot;
rsBikes.CursorType = 0
rsBikes.CursorLocation = 2
rsBikes.LockType = 1
rsBikes.Open()

rsBikes_numRows = 0
%>
<%
Dim HLooper1__numRows
HLooper1__numRows = 25
Dim HLooper1__index
HLooper1__index = 0
rsBikes_numRows = rsBikes_numRows + HLooper1__numRows
%>
<%
' *** Recordset Stats, Move To Record, and Go To Record: declare stats variables

Dim rsBikes_total
Dim rsBikes_first
Dim rsBikes_last

' set the record count
rsBikes_total = rsBikes.RecordCount

' set the number of rows displayed on this page
If (rsBikes_numRows < 0) Then
rsBikes_numRows = rsBikes_total
Elseif (rsBikes_numRows = 0) Then
rsBikes_numRows = 1
End If

' set the first and last displayed record
rsBikes_first = 1
rsBikes_last = rsBikes_first + rsBikes_numRows - 1

' if we have the correct record count, check the other stats
If (rsBikes_total <> -1) Then
If (rsBikes_first > rsBikes_total) Then
rsBikes_first = rsBikes_total
End If
If (rsBikes_last > rsBikes_total) Then
rsBikes_last = rsBikes_total
End If
If (rsBikes_numRows > rsBikes_total) Then
rsBikes_numRows = rsBikes_total
End If
End If
%>
<%
Dim MM_paramName
%>
<%
' *** Move To Record and Go To Record: declare variables

Dim MM_rs
Dim MM_rsCount
Dim MM_size
Dim MM_uniqueCol
Dim MM_offset
Dim MM_atTotal
Dim MM_paramIsDefined

Dim MM_param
Dim MM_index

Set MM_rs = rsBikes
MM_rsCount = rsBikes_total
MM_size = rsBikes_numRows
MM_uniqueCol = &quot;&quot;
MM_paramName = &quot;&quot;
MM_offset = 0
MM_atTotal = false
MM_paramIsDefined = false
If (MM_paramName <> &quot;&quot;) Then
MM_paramIsDefined = (Request.QueryString(MM_paramName) <> &quot;&quot;)
End If
%>
<%
' *** Move To Record: handle 'index' or 'offset' parameter

if (Not MM_paramIsDefined And MM_rsCount <> 0) then

' use index parameter if defined, otherwise use offset parameter
MM_param = Request.QueryString(&quot;index&quot;)
If (MM_param = &quot;&quot;) Then
MM_param = Request.QueryString(&quot;offset&quot;)
End If
If (MM_param <> &quot;&quot;) Then
MM_offset = Int(MM_param)
End If

' if we have a record count, check if we are past the end of the recordset
If (MM_rsCount <> -1) Then
If (MM_offset >= MM_rsCount Or MM_offset = -1) Then ' past end or move last
If ((MM_rsCount Mod MM_size) > 0) Then ' last page not a full repeat region
MM_offset = MM_rsCount - (MM_rsCount Mod MM_size)
Else
MM_offset = MM_rsCount - MM_size
End If
End If
End If

' move the cursor to the selected record
MM_index = 0
While ((Not MM_rs.EOF) And (MM_index < MM_offset Or MM_offset = -1))
MM_rs.MoveNext
MM_index = MM_index + 1
Wend
If (MM_rs.EOF) Then
MM_offset = MM_index ' set MM_offset to the last possible record
End If

End If
%>
<%
' *** Move To Record: if we dont know the record count, check the display range

If (MM_rsCount = -1) Then

' walk to the end of the display range for this page
MM_index = MM_offset
While (Not MM_rs.EOF And (MM_size < 0 Or MM_index < MM_offset + MM_size))
MM_rs.MoveNext
MM_index = MM_index + 1
Wend

' if we walked off the end of the recordset, set MM_rsCount and MM_size
If (MM_rs.EOF) Then
MM_rsCount = MM_index
If (MM_size < 0 Or MM_size > MM_rsCount) Then
MM_size = MM_rsCount
End If
End If

' if we walked off the end, set the offset based on page size
If (MM_rs.EOF And Not MM_paramIsDefined) Then
If (MM_offset > MM_rsCount - MM_size Or MM_offset = -1) Then
If ((MM_rsCount Mod MM_size) > 0) Then
MM_offset = MM_rsCount - (MM_rsCount Mod MM_size)
Else
MM_offset = MM_rsCount - MM_size
End If
End If
End If

' reset the cursor to the beginning
If (MM_rs.CursorType > 0) Then
MM_rs.MoveFirst
Else
MM_rs.Requery
End If

' move the cursor to the selected record
MM_index = 0
While (Not MM_rs.EOF And MM_index < MM_offset)
MM_rs.MoveNext
MM_index = MM_index + 1
Wend
End If
%>
<%
' *** Move To Record: update recordset stats

' set the first and last displayed record
rsBikes_first = MM_offset + 1
rsBikes_last = MM_offset + MM_size

If (MM_rsCount <> -1) Then
If (rsBikes_first > MM_rsCount) Then
rsBikes_first = MM_rsCount
End If
If (rsBikes_last > MM_rsCount) Then
rsBikes_last = MM_rsCount
End If
End If

' set the boolean used by hide region to check if we are on the last record
MM_atTotal = (MM_rsCount <> -1 And MM_offset + MM_size >= MM_rsCount)
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters

Dim MM_keepNone
Dim MM_keepURL
Dim MM_keepForm
Dim MM_keepBoth

Dim MM_removeList
Dim MM_item
Dim MM_nextItem

' create the list of parameters which should not be maintained
MM_removeList = &quot;&index=&quot;
If (MM_paramName <> &quot;&quot;) Then
MM_removeList = MM_removeList & &quot;&&quot; & MM_paramName & &quot;=&quot;
End If

MM_keepURL=&quot;&quot;
MM_keepForm=&quot;&quot;
MM_keepBoth=&quot;&quot;
MM_keepNone=&quot;&quot;

' add the URL parameters to the MM_keepURL string
For Each MM_item In Request.QueryString
MM_nextItem = &quot;&&quot; & MM_item & &quot;=&quot;
If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item))
End If
Next

' add the Form variables to the MM_keepForm string
For Each MM_item In Request.Form
MM_nextItem = &quot;&&quot; & MM_item & &quot;=&quot;
If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item))
End If
Next

' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
If (MM_keepBoth <> &quot;&quot;) Then
MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
End If
If (MM_keepURL <> &quot;&quot;) Then
MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1)
End If
If (MM_keepForm <> &quot;&quot;) Then
MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
End If

' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
If (firstItem <> &quot;&quot;) Then
MM_joinChar = &quot;&&quot;
Else
MM_joinChar = &quot;&quot;
End If
End Function
%>
<%
' *** Move To Record: set the strings for the first, last, next, and previous links

Dim MM_keepMove
Dim MM_moveParam
Dim MM_moveFirst
Dim MM_moveLast
Dim MM_moveNext
Dim MM_movePrev

Dim MM_urlStr
Dim MM_paramList
Dim MM_paramIndex
Dim MM_nextParam

MM_keepMove = MM_keepBoth
MM_moveParam = &quot;index&quot;

' if the page has a repeated region, remove 'offset' from the maintained parameters
If (MM_size > 1) Then
MM_moveParam = &quot;offset&quot;
If (MM_keepMove <> &quot;&quot;) Then
MM_paramList = Split(MM_keepMove, &quot;&&quot;)
MM_keepMove = &quot;&quot;
For MM_paramIndex = 0 To UBound(MM_paramList)
MM_nextParam = Left(MM_paramList(MM_paramIndex), InStr(MM_paramList(MM_paramIndex),&quot;=&quot;) - 1)
If (StrComp(MM_nextParam,MM_moveParam,1) <> 0) Then
MM_keepMove = MM_keepMove & &quot;&&quot; & MM_paramList(MM_paramIndex)
End If
Next
If (MM_keepMove <> &quot;&quot;) Then
MM_keepMove = Right(MM_keepMove, Len(MM_keepMove) - 1)
End If
End If
End If

' set the strings for the move to links
If (MM_keepMove <> &quot;&quot;) Then
MM_keepMove = MM_keepMove & &quot;&&quot;
End If

MM_urlStr = Request.ServerVariables(&quot;URL&quot;) & &quot;?&quot; & MM_keepMove & MM_moveParam & &quot;=&quot;

MM_moveFirst = MM_urlStr & &quot;0&quot;
MM_moveLast = MM_urlStr & &quot;-1&quot;
MM_moveNext = MM_urlStr & CStr(MM_offset + MM_size)
If (MM_offset - MM_size < 0) Then
MM_movePrev = MM_urlStr & &quot;0&quot;
Else
MM_movePrev = MM_urlStr & CStr(MM_offset - MM_size)
End If
%>
<html><!-- InstanceBegin template=&quot;/Templates/Illusions Gallery.dwt.asp&quot; codeOutsideHTMLIsLocked=&quot;false&quot; -->
<head>
<!-- InstanceBeginEditable name=&quot;doctitle&quot; -->
<title>Illusions Custom Airbrush</title>
<!-- InstanceEndEditable -->
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
<meta name=&quot;description&quot; content=&quot;FW MX DW MX HTML&quot;>
<!-- Fireworks MX Dreamweaver MX target. Created Sat Dec 21 14:42:58 GMT-0800 (Pacific Standard Time) 2002-->
<script language=&quot;JavaScript&quot;>
<!--
function mmLoadMenus() {
if (window.mm_menu_0016234414_0) return;
window.mm_menu_0016234414_0 = new Menu(&quot;root&quot;,142,20,&quot;Verdana, Arial, Helvetica, sans-serif&quot;,10,&quot;#ffff00&quot;,&quot;#ffffff&quot;,&quot;#000000&quot;,&quot;#0000ff&quot;,&quot;left&quot;,&quot;middle&quot;,0,0,1000,-134,28,true,true,true,10,false,false);
mm_menu_0016234414_0.addMenuItem(&quot;About&nbsp;Us&quot;,&quot;location='about3.asp'&quot;);
mm_menu_0016234414_0.addMenuItem(&quot;Our&nbsp;Quality&quot;,&quot;location='quality3.asp'&quot;);
mm_menu_0016234414_0.addMenuItem(&quot;Our&nbsp;Time&nbsp;Frame&quot;,&quot;location='timeframe3.asp'&quot;);
mm_menu_0016234414_0.addMenuItem(&quot;Design&nbsp;&amp;&nbsp;Procedures&quot;,&quot;location='design3.asp'&quot;);
mm_menu_0016234414_0.addMenuItem(&quot;About&nbsp;the&nbsp;Artist&quot;,&quot;location='artist3.asp'&quot;);
mm_menu_0016234414_0.addMenuItem(&quot;Our&nbsp;Awards&quot;,&quot;location='awards3.asp'&quot;);
mm_menu_0016234414_0.addMenuItem(&quot;Our&nbsp;News&quot;,&quot;location='news3.asp'&quot;);
mm_menu_0016234414_0.addMenuItem(&quot;Happy&nbsp;Campers!&quot;,&quot;location='campers3.asp'&quot;);
mm_menu_0016234414_0.addMenuItem(&quot;Our&nbsp;Webmaster&quot;,&quot;location='webmaster3.asp'&quot;);
mm_menu_0016234414_0.fontWeight=&quot;bold&quot;;
mm_menu_0016234414_0.hideOnMouseOut=true;
mm_menu_0016234414_0.menuBorder=1;
mm_menu_0016234414_0.menuLiteBgColor='#ffffcc';
mm_menu_0016234414_0.menuBorderBgColor='#cccccc';
mm_menu_0016234414_0.bgColor='#ffffff';
window.mm_menu_0314223409_0 = new Menu(&quot;root&quot;,130,20,&quot;Verdana, Arial, Helvetica, sans-serif&quot;,10,&quot;#ffff00&quot;,&quot;#ffffff&quot;,&quot;#000000&quot;,&quot;#0000ff&quot;,&quot;left&quot;,&quot;middle&quot;,0,0,1000,-134,28,true,true,true,10,false,false);
mm_menu_0314223409_0.addMenuItem(&quot;Motorcycle&nbsp;Art&quot;,&quot;location='cycleart3.asp'&quot;);
mm_menu_0314223409_0.addMenuItem(&quot;Auto&nbsp;Art&quot;,&quot;location='autoart3.asp'&quot;);
mm_menu_0314223409_0.addMenuItem(&quot;Mural&nbsp;Art&quot;,&quot;location='muralart3.asp'&quot;);
mm_menu_0314223409_0.addMenuItem(&quot;Fine&nbsp;Art&quot;,&quot;location='fineart3.asp'&quot;);
mm_menu_0314223409_0.addMenuItem(&quot;Special&nbsp;Art&quot;,&quot;location='specialart3.asp'&quot;);
mm_menu_0314223409_0.addMenuItem(&quot;Project&nbsp;Art&quot;,&quot;location='projectart3.asp'&quot;);
mm_menu_0314223409_0.fontWeight=&quot;bold&quot;;
mm_menu_0314223409_0.hideOnMouseOut=true;
mm_menu_0314223409_0.menuBorder=1;
mm_menu_0314223409_0.menuLiteBgColor='#ffffcc';
mm_menu_0314223409_0.menuBorderBgColor='#999999';
mm_menu_0314223409_0.bgColor='#ffffff';
window.mm_menu_0314224525_1 = new Menu(&quot;root&quot;,130,20,&quot;Verdana, Arial, Helvetica, sans-serif&quot;,10,&quot;#ffff00&quot;,&quot;#ffffff&quot;,&quot;#000000&quot;,&quot;#0000ff&quot;,&quot;left&quot;,&quot;middle&quot;,0,0,1000,-134,28,true,true,true,10,false,false);
mm_menu_0314224525_1.addMenuItem(&quot;Past&nbsp;Projects&quot;,&quot;location='pastprojects3.asp'&quot;);
mm_menu_0314224525_1.addMenuItem(&quot;Current&nbsp;Projects&quot;,&quot;location='currentprojects3.asp'&quot;);
mm_menu_0314224525_1.addMenuItem(&quot;Future&nbsp;Projects&quot;,&quot;location='futureprojects3.asp'&quot;);
mm_menu_0314224525_1.addMenuItem(&quot;Clients&nbsp;View&quot;,&quot;location='clientsview3.asp'&quot;);
mm_menu_0314224525_1.addMenuItem(&quot;Video's&quot;,&quot;location='videos3.asp'&quot;);
mm_menu_0314224525_1.addMenuItem(&quot;Customer's&nbsp;Awards&quot;,&quot;location='clientawards3.asp'&quot;);
mm_menu_0314224525_1.fontWeight=&quot;bold&quot;;
mm_menu_0314224525_1.hideOnMouseOut=true;
mm_menu_0314224525_1.menuBorder=1;
mm_menu_0314224525_1.menuLiteBgColor='#ffffcc';
mm_menu_0314224525_1.menuBorderBgColor='#999999';
mm_menu_0314224525_1.bgColor='#ffffff';
window.mm_menu_0314225141_2 = new Menu(&quot;root&quot;,130,20,&quot;Verdana, Arial, Helvetica, sans-serif&quot;,10,&quot;#ffff00&quot;,&quot;#ffffff&quot;,&quot;#000000&quot;,&quot;#0000ff&quot;,&quot;left&quot;,&quot;middle&quot;,0,0,1000,-134,28,true,true,true,10,false,false);
mm_menu_0314225141_2.addMenuItem(&quot;Show&nbsp;Schedules&quot;,&quot;location='showschedules3.asp'&quot;);
mm_menu_0314225141_2.addMenuItem(&quot;Comments&quot;,&quot;location='comments3.asp'&quot;);
mm_menu_0314225141_2.addMenuItem(&quot;Quotes&quot;,&quot;location='quotes3.asp'&quot;);
mm_menu_0314225141_2.addMenuItem(&quot;Questions&quot;,&quot;location='questions3.asp'&quot;);
mm_menu_0314225141_2.addMenuItem(&quot;Bob's&nbsp;Biker&nbsp;Bar&quot;,&quot;location='bikerbar3.asp'&quot;);
mm_menu_0314225141_2.fontWeight=&quot;bold&quot;;
mm_menu_0314225141_2.hideOnMouseOut=true;
mm_menu_0314225141_2.menuBorder=1;
mm_menu_0314225141_2.menuLiteBgColor='#ffffcc';
mm_menu_0314225141_2.menuBorderBgColor='#cccccc';
mm_menu_0314225141_2.bgColor='#ffffff';
window.mm_menu_0314225726_3 = new Menu(&quot;root&quot;,130,20,&quot;Verdana, Arial, Helvetica, sans-serif&quot;,10,&quot;#ffff00&quot;,&quot;#ffffff&quot;,&quot;#000000&quot;,&quot;#0000ff&quot;,&quot;left&quot;,&quot;middle&quot;,0,0,1000,-134,28,true,true,true,10,false,false);
mm_menu_0314225726_3.addMenuItem(&quot;Related&nbsp;Links&quot;,&quot;location='relatedlinks3.asp'&quot;);
mm_menu_0314225726_3.addMenuItem(&quot;Points&nbsp;of&nbsp;Interest&quot;,&quot;location='poilinks3.asp'&quot;);
mm_menu_0314225726_3.fontWeight=&quot;bold&quot;;
mm_menu_0314225726_3.hideOnMouseOut=true;
mm_menu_0314225726_3.menuBorder=1;
mm_menu_0314225726_3.menuLiteBgColor='#ffffcc';
mm_menu_0314225726_3.menuBorderBgColor='#cccccc';
mm_menu_0314225726_3.bgColor='#ffffff';

mm_menu_0314225726_3.writeMenus();
} // mmLoadMenus()

//-->

</script>
<script language=&quot;JavaScript1.2&quot; src=&quot;mm_menu.js&quot;></script>
<!-- InstanceBeginEditable name=&quot;head&quot; --><!-- InstanceEndEditable -->
</head>
<body bgcolor=&quot;#000000&quot; text=&quot;#FFFFFF&quot; link=&quot;#FFFF00&quot; vlink=&quot;#99FFFF&quot; alink=&quot;#FF0000&quot; leftmargin=&quot;0&quot; topmargin=&quot;0&quot;>

<script language=&quot;JavaScript1.2&quot;>mmLoadMenus();</script>
<table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;100%&quot;>
<!--DWLayoutTable-->
<!-- fwtable fwsrc=&quot;The Menu1.png&quot; fwbase=&quot;illusions1.jpg&quot; fwstyle=&quot;Dreamweaver&quot; fwdocid = &quot;742308039&quot; fwnested=&quot;1&quot; -->
<tr>
<!-- row 1 -->
<td><table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;108&quot;>
<tr>
<!-- row 1 -->
<td><img name=&quot;illusions1_r1_c1&quot; src=&quot;Images/illusions1_r1_c1.jpg&quot; width=&quot;108&quot; height=&quot;76&quot; border=&quot;0&quot; alt=&quot;&quot;></td>
</tr>
<tr>
<!-- row 2 -->
<td><a href=&quot;#&quot; onMouseOut=&quot;MM_startTimeout();&quot; onMouseOver=&quot;MM_showMenu(window.mm_menu_0016234414_0,0,25,null,'illusions1_r2_c1');&quot;><img name=&quot;illusions1_r2_c1&quot; src=&quot;Images/illusions1_r2_c1.jpg&quot; width=&quot;108&quot; height=&quot;64&quot; border=&quot;0&quot; alt=&quot;&quot;></a></td>
</tr>
</table></td>
<td><table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;96&quot;>
<tr>
<!-- row 1 -->
<td><img name=&quot;illusions1_r1_c2&quot; src=&quot;Images/illusions1_r1_c2.jpg&quot; width=&quot;96&quot; height=&quot;76&quot; border=&quot;0&quot; alt=&quot;&quot;></td>
</tr>
<tr>
<!-- row 2 -->
<td><a href=&quot;#&quot; onMouseOut=&quot;MM_startTimeout();&quot; onMouseOver=&quot;MM_showMenu(window.mm_menu_0314223409_0,0,25,null,'illusions1_r2_c2');&quot;><img name=&quot;illusions1_r2_c2&quot; src=&quot;Images/illusions1_r2_c2.jpg&quot; width=&quot;96&quot; height=&quot;64&quot; border=&quot;0&quot; alt=&quot;&quot;></a></td>
</tr>
</table></td>
<td><table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;96&quot;>
<tr>
<!-- row 1 -->
<td><img name=&quot;illusions1_r1_c3&quot; src=&quot;Images/illusions1_r1_c3.jpg&quot; width=&quot;96&quot; height=&quot;76&quot; border=&quot;0&quot; alt=&quot;&quot;></td>
</tr>
<tr>
<!-- row 2 -->
<td><a href=&quot;#&quot; onMouseOut=&quot;MM_startTimeout();&quot; onMouseOver=&quot;MM_showMenu(window.mm_menu_0314224525_1,0,25,null,'illusions1_r2_c3');&quot;><img name=&quot;illusions1_r2_c3&quot; src=&quot;Images/illusions1_r2_c3.jpg&quot; width=&quot;96&quot; height=&quot;64&quot; border=&quot;0&quot; alt=&quot;&quot;></a></td>
</tr>
</table></td>
<td><table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;98&quot;>
<tr>
<!-- row 1 -->
<td><img name=&quot;illusions1_r1_c4&quot; src=&quot;Images/illusions1_r1_c4.jpg&quot; width=&quot;98&quot; height=&quot;76&quot; border=&quot;0&quot; alt=&quot;&quot;></td>
</tr>
<tr>
<!-- row 2 -->
<td><a href=&quot;#&quot; onMouseOut=&quot;MM_startTimeout();&quot; onMouseOver=&quot;MM_showMenu(window.mm_menu_0314225141_2,0,25,null,'illusions1_r2_c4');&quot;><img name=&quot;illusions1_r2_c4&quot; src=&quot;Images/illusions1_r2_c4.jpg&quot; width=&quot;98&quot; height=&quot;64&quot; border=&quot;0&quot; alt=&quot;&quot;></a></td>
</tr>
</table></td>
<td><table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;96&quot;>
<tr>
<!-- row 1 -->
<td><img name=&quot;illusions1_r1_c5&quot; src=&quot;Images/illusions1_r1_c5.jpg&quot; width=&quot;96&quot; height=&quot;76&quot; border=&quot;0&quot; alt=&quot;&quot;></td>
</tr>
<tr>
<!-- row 2 -->
<td><a href=&quot;#&quot; onMouseOut=&quot;MM_startTimeout();&quot; onMouseOver=&quot;MM_showMenu(window.mm_menu_0314225726_3,0,25,null,'illusions1_r2_c5');&quot;><img name=&quot;illusions1_r2_c5&quot; src=&quot;Images/illusions1_r2_c5.jpg&quot; width=&quot;96&quot; height=&quot;64&quot; border=&quot;0&quot; alt=&quot;&quot;></a></td>
</tr>
</table></td>
<td><table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;103&quot;>
<tr>
<!-- row 1 -->
<td><img name=&quot;illusions1_r1_c6&quot; src=&quot;Images/illusions1_r1_c6.jpg&quot; width=&quot;103&quot; height=&quot;76&quot; border=&quot;0&quot; alt=&quot;&quot;></td>
</tr>
<tr>
<!-- row 2 -->
<td><img name=&quot;illusions1_r2_c6&quot; src=&quot;Images/illusions1_r2_c6.jpg&quot; width=&quot;103&quot; height=&quot;64&quot; border=&quot;0&quot; alt=&quot;&quot;></td>
</tr>
</table></td>
<td><table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;33&quot;>
<tr>
<!-- row 1 -->
<td><img name=&quot;illusions1_r1_c7&quot; src=&quot;Images/illusions1_r1_c7.jpg&quot; width=&quot;33&quot; height=&quot;76&quot; border=&quot;0&quot; alt=&quot;&quot;></td>
</tr>
<tr>
<!-- row 2 -->
<td><img name=&quot;illusions1_r2_c7&quot; src=&quot;Images/illusions1_r2_c7.jpg&quot; width=&quot;33&quot; height=&quot;64&quot; border=&quot;0&quot; alt=&quot;&quot;></td>
</tr>
</table></td>
<td><img name=&quot;illusions1_r1_c8&quot; src=&quot;Images/illusions1_r1_c8.jpg&quot; width=&quot;52&quot; height=&quot;140&quot; border=&quot;0&quot; alt=&quot;&quot;></td>
<td><table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;84&quot;>
<tr>
<!-- row 1 -->
<td><img name=&quot;illusions1_r1_c9&quot; src=&quot;Images/illusions1_r1_c9.jpg&quot; width=&quot;84&quot; height=&quot;76&quot; border=&quot;0&quot; alt=&quot;&quot;></td>
</tr>
<tr>
<!-- row 2 -->
<td><img name=&quot;illusions1_r2_c9&quot; src=&quot;Images/illusions1_r2_c9.jpg&quot; width=&quot;84&quot; height=&quot;64&quot; border=&quot;0&quot; alt=&quot;&quot;></td>
</tr>
</table></td>
<td width=&quot;100%&quot; background=&quot;Images/illusions1_r1_c10.jpg&quot;><!--DWLayoutEmptyCell-->&nbsp;</td>
</tr>
<tr>
<td height=&quot;1&quot;><img src=&quot;spacer.gif&quot; alt=&quot;&quot; width=&quot;108&quot; height=&quot;1&quot;></td>
<td><img src=&quot;spacer.gif&quot; alt=&quot;&quot; width=&quot;96&quot; height=&quot;1&quot;></td>
<td><img src=&quot;spacer.gif&quot; alt=&quot;&quot; width=&quot;96&quot; height=&quot;1&quot;></td>
<td><img src=&quot;spacer.gif&quot; alt=&quot;&quot; width=&quot;98&quot; height=&quot;1&quot;></td>
<td><img src=&quot;spacer.gif&quot; alt=&quot;&quot; width=&quot;96&quot; height=&quot;1&quot;></td>
<td><img src=&quot;spacer.gif&quot; alt=&quot;&quot; width=&quot;103&quot; height=&quot;1&quot;></td>
<td><img src=&quot;spacer.gif&quot; alt=&quot;&quot; width=&quot;33&quot; height=&quot;1&quot;></td>
<td><img src=&quot;spacer.gif&quot; alt=&quot;&quot; width=&quot;52&quot; height=&quot;1&quot;></td>
<td><img src=&quot;spacer.gif&quot; alt=&quot;&quot; width=&quot;84&quot; height=&quot;1&quot;></td>
<td></td>
</tr>

</table>

<!-- InstanceBeginEditable name=&quot;Body&quot; -->
<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;3&quot; cellpadding=&quot;3&quot;>
<tr>
<td>
<table align=&quot;center&quot;>
<%
startrw = 0
endrw = HLooper1__index
numberColumns = 5
numrows = 5
while((numrows <> 0) AND (Not rsBikes.EOF))
startrw = endrw + 1
endrw = endrw + numberColumns
%>
<tr align=&quot;center&quot; valign=&quot;top&quot;>
<%
While ((startrw <= endrw) AND (Not rsBikes.EOF))
%>
<td> <table border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;4&quot; cellspacing=&quot;4&quot;>
<tr>
<td><div align=&quot;center&quot;><img src=&quot;<%=(rsBikes.Fields.Item(&quot;PicThumb&quot;).Value)%>&quot; alt=&quot;&quot;></div></td>
</tr>
</table>
</td>
<%
startrw = startrw + 1
rsBikes.MoveNext()
Wend
%>
</tr>
<%
numrows=numrows-1
Wend
%>
</table>
<p align=&quot;center&quot;>&nbsp;</p>
<table border=&quot;0&quot; width=&quot;50%&quot; align=&quot;center&quot;>
<tr>
<td width=&quot;23%&quot; align=&quot;center&quot;>
<% If MM_offset <> 0 Then %>
<a href=&quot;<%=MM_moveFirst%>&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>First</font></a>
<% End If ' end MM_offset <> 0 %> </td>
<td width=&quot;31%&quot; align=&quot;center&quot;>
<% If MM_offset <> 0 Then %>
<a href=&quot;<%=MM_movePrev%>&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>Previous</font></a>
<% End If ' end MM_offset <> 0 %> </td>
<td width=&quot;23%&quot; align=&quot;center&quot;>
<% If Not MM_atTotal Then %>
<a href=&quot;<%=MM_moveNext%>&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>Next</font></a>
<% End If ' end Not MM_atTotal %> </td>
<td width=&quot;23%&quot; align=&quot;center&quot;>
<% If Not MM_atTotal Then %>
<a href=&quot;<%=MM_moveLast%>&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>Last</font></a>
<% End If ' end Not MM_atTotal %> </td>
</tr>
</table></td>
</tr>
</table>
<!-- InstanceEndEditable -->
<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td align=&quot;left&quot; valign=&quot;top&quot;>&nbsp;</td>
</tr>
</table>
<p>&nbsp;</p>
</body>
<!-- InstanceEnd --></html>
<%
rsBikes.Close()
Set rsBikes = Nothing
%>
 
this line

<td><div align=&quot;center&quot;><img src=&quot;<%=(rsBikes.Fields.Item(&quot;PicThumb&quot;).Value)%>&quot; alt=&quot;&quot;></div></td>


change too (its down right after the beginning of your repeat region - change what you see in red to be your actual database field name.


<td><div align=&quot;center&quot;><a href=&quot;detail.asp?pictureID=<%rsBikes.fields.item(&quot;
id&quot;).value%>&quot;><img src=&quot;<%rsBikes.fields.item(&quot;PicThumb&quot;).Value%>&quot;></a></div></td>

&quot;Never underestimate the power of determination&quot;

Stuart
 
Thanks Stuart,

You pointed me to correcting the error. Although I found it interesting that although it did solve the error when I view the page in DW MX its showing an &quot;!&quot; meaning the syntax is in correct although running on the server it works just fine. True syntax checking by artificial means. :)

Dostani
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top