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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

interger adding

Status
Not open for further replies.

vivasuzi

Programmer
Jun 14, 2002
183
I want to do this... I have a table with 4 pics in each row. I want to have a count variable that will start with 1, and then count up to 4. Then when it gets to 4, i write out a new row and reset the count to 1.

I can do the table, and all the other stuff, I just dount know how to make the count so that it's treated like an int. Kind of like in C++ where you can just declare int count. Get it? thanx for any help. *Suzanne*
 
do while not rs.eof
response.write &quot;<tr>&quot;

for (i=1;i<5;i++)
response.write &quot;<td><img src=something></td>&quot;
response.write &quot;</tr>&quot;
next i

hth
Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top