---
title: "Bilder i rad istället för listade."
type: "forum-thread"
url: "https://www.webforum.nu/amne/asp/76560-bilder-i-rad-istället-för-listade"
topic: "ASP"
topic_url: "https://www.webforum.nu/amne/asp"
author: "Alkvettern"
published: "2003-05-10T16:50:20.000Z"
updated: "2003-05-10T18:16:01.000Z"
replies: 2
views: 440
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/asp/76560-bilder-i-rad-istället-för-listade"
---

# Bilder i rad istället för listade.

## #1 — Alkvettern, 2003-05-10T16:50Z

Hej alla!

Har en databas där jag hämtar upp spelarbilder.

Nu vill jag visa dom fyra o fyra

sä här:

BILD BILD BILD BILD
BILD BILD BILD BILD
BILD BILD BILD BILD

osv.

istället för som det ser ut nu:

BILD 
BILD 
BILD 

osv.

Hur gör jag?

Permalänk: https://www.webforum.nu/p/76560

## #2 — Grillcliff, 2003-05-10T17:46Z

Hej,

Detta tycker jag borde funka:

```
<%	intAntal = 0
	Do Until RS.EOF
		intAntal = intAntal + 1 %>
		<img src="<%=RS("bild")%>" alt="">
			<% If intAntal = 4 Then
				intAntal = 0 %>
				<br>
			<% End if
	RS.MoveNext
	Loop %>
```

Permalänk: https://www.webforum.nu/p/1042528

## #3 — OveRRidE, 2003-05-10T18:16Z

Eller tabellversionen:

```
<%
intAntal = 0
response.write "<table border=0>"
response.write "<tr>"

Do Until RS.EOF 
   intAntal = intAntal + 1
   response.write "<td>" & RS("bild") & "</td>"
   If intAntal = 4 Then
      intAntal = 0
      response.write "</tr><tr>"
   end if
RS.MoveNext
Loop 
response.write "</tr>"
response.write "</table>"
%>
```

Permalänk: https://www.webforum.nu/p/1042535

---

Tråden på webben: https://www.webforum.nu/amne/asp/76560-bilder-i-rad-istället-för-listade
