Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
steven_c #1
Horizontal looper - dynamic column #
OK you clever peple out there!!!
Can you solve this one for me?
I need to edit this code so it will dynamically loop a series of images based
on the number of columns held in a database field.
My current code looks like this:
<%
startrw = 0
endrw = HLooper1__index
numberColumns = 3
numrows = -1
while((numrows <> 0) AND (Not greetingcards.EOF))
startrw = endrw + 1
endrw = endrw + numberColumns
%>
but i need to code it so that numberColumns = 3
is dynamically controlled by my database so the count can vary depending upon
the records selected
I essentially want it to replace the 3 with the number in my database but the
edited code below (hightlighted) does not work.
<%
startrw = 0
endrw = HLooper1__index
numberColumns = <%=(looperrepeat.Fields.Item("repeatcount").Value) %>
numrows = -1
while((numrows <> 0) AND (Not greetingcards.EOF))
startrw = endrw + 1
endrw = endrw + numberColumns
%>
If anyone has any ideas on this it would be much appreciated!!!
Many thanks all
Steve
steven_c Guest
-
Can Horizontal Looper 2 do that?
I'm developing a survey site using ASP and Access. I want to compare the results of several respondents in different categories and display them... -
Tom Muck's Horizontal Verticle Looper
Hello, I am having a problem with the paid version of Horizontal Verticle Looper for PHP. It works fine however when it displays the items on the... -
Horizontal Looper not working in CS3
I recently upgraded to Dreamweaver CS3 from 8 and have been unable to get Horizontal Looper 2 (the version for ASP) to work in this new version. ... -
Horizontal Looper extension for MX?
Hi, Had a look on the exchange, and there's only one MX horizontal looper extension which is only for UD4. Does anyone know a source for a... -
Horizontal Looper for MX
Hi, Does anyone know of a horizontal looper extension for DMX like the one Ray did for UD? Paul



Reply With Quote

