---
title: "html & asp"
type: "forum-thread"
url: "https://www.webforum.nu/amne/asp/57817-html-asp"
topic: "ASP"
topic_url: "https://www.webforum.nu/amne/asp"
author: "antar"
published: "2002-11-02T17:21:29.000Z"
updated: "2002-11-02T17:52:22.000Z"
replies: 5
views: 199
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/57817-html-asp"
---

# html & asp

## #1 — antar, 2002-11-02T17:21Z

**så här ser html koden ut
Vill få bort det som är fetmarkerad!**

\<table border="0" cellspacing="1" style="border:1px solid #000000; border-collapse: collapse" width="100%"\>
\<tr\>\<td width="100%"\>
\<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%"\>

\<tr\>
    \<td width="100%"\>\<b\>\<font size="1" face="Tahoma"\>
    Gifta.\</font\>\</b\>\</td\>
  \</tr\>

    
  \<tr\>
    \<td width="100%"\>\<font size="1" face="Tahoma"\>test.\</font\>**\</td\>
   
\</table\>**

  \<tr\>
    \<td width="100%"\>\<font size="1" face="Tahoma"\>test.\</font\>**\</td\>
   
\</table\>**

  \<tr\>
    \<td width="100%"\>\<font size="1" face="Tahoma"\>test.\</font\>\</td\>
   
\</table\>

\</table\>\<br\>

\<table border="0" cellspacing="1" style="border:1px solid #000000; border-collapse: collapse" width="100%"\>
\<tr\>\<td width="100%"\>
\<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%"\>

\<tr\>
    \<td width="100%"\>\<b\>\<font size="1" face="Tahoma"\>
    Kompanjoner.\</font\>\</b\>\</td\>
  \</tr\>

    
  \<tr\>
    \<td width="100%"\>\<font size="1" face="Tahoma"\>test.\</font\>**\</td\>
   
\</table\>**

  \<tr\>
    \<td width="100%"\>\<font size="1" face="Tahoma"\>test.\</font\>\</td\>
   
\</table\>

\</table\>&nbsp;\<table border="0" cellspacing="1" style="border:1px solid #000000; border-collapse: collapse" width="100%"\>
\<tr\>\<td width="100%"\>
\<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%"\>

\<tr\>
    \<td width="100%"\>\<b\>\<font size="1" face="Tahoma"\>
    Älskling.\</font\>\</b\>\</td\>
  \</tr\>

    
  \<tr\>
    \<td width="100%"\>\<font size="1" face="Tahoma"\>test.\</font\>**\</td\>
   
\</table\>**

  \<tr\>
    \<td width="100%"\>\<font size="1" face="Tahoma"\>test.\</font\>**\</td\>
   
\</table\>**

  \<tr\>
    \<td width="100%"\>\<font size="1" face="Tahoma"\>test.\</font\>\</td\>\</table\>

**Och ASP koden här**

```
<%
test = "antar"
Set Connect = Server.CreateObject("ADODB.Connection") 
Connect.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("database/kompisar.mdb")&"" 
Set RecSet = Server.CreateObject("ADODB.Recordset") 
Addera = "Select * From Kompisar Where not accepterad=false and Kompis1 = '"&test&"' or kompis2 = '"&test&"' and not accepterad=false order by relation,Kompis1 ASC" 
RecSet.Open Addera, Connect, 3, 3 

do until recset.eof 

if not recset("Relation") = strRelation then 
strRelation = recset("Relation")
If first = "no" then%>
</table><br>
<%End If%>
<table border="0" cellspacing="1" style="border:1px solid #000000; border-collapse: collapse" width="100%">
<tr><td width="100%">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%">

<tr>
    <td width="100%"><b><font size="1" face="Tahoma">
    <%=recset("Relation")%>.</font></b></td>
  </tr>

    <%end if%>
  <tr>
    <td width="100%"><font size="1" face="Tahoma">test.</font></td>
   
</table>
<%
first = "no"
RecSet.MoveNext
Loop

RecSet.Close
set recset = nothing
Connect.Close
set connect = nothing
%>
```

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

## #2 — @nders, 2002-11-02T17:23Z

Du har ju utskriften av \</td\> och \</table\> inne i loopen. Väck, väck väck?

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

## #3 — antar, 2002-11-02T17:26Z

hur gör jag då?

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

## #4 — Jesper T, 2002-11-02T17:42Z

```
<%
test = "antar"
Set Connect = Server.CreateObject("ADODB.Connection") 
Connect.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("database/kompisar.mdb")&"" 
Set RecSet = Server.CreateObject("ADODB.Recordset") 
Addera = "Select * From Kompisar Where not accepterad=false and Kompis1 = '"&test&"' or kompis2 = '"&test&"' and not accepterad=false order by relation,Kompis1 ASC" 
RecSet.Open Addera, Connect, 3, 3 

do until recset.eof 

if not recset("Relation") = strRelation then 
strRelation = recset("Relation")
If first = "no" then%>
</table><br>
<%End If%>
<table border="0" cellspacing="1" style="border:1px solid #000000; border-collapse: collapse" width="100%">
<tr><td width="100%">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%">

<tr>
    <td width="100%"><b><font size="1" face="Tahoma">
    <%=recset("Relation")%>.</font></b></td>
  </tr>

    <%end if%>
  <tr>
    <td width="100%"><font size="1" face="Tahoma">test.</font> <%
first = "no"
RecSet.MoveNext
Loop

RecSet.Close
set recset = nothing
Connect.Close
set connect = nothing
%>
</td>
   
</table>
```

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

## #5 — antar, 2002-11-02T17:47Z

nu ser html koden ut så här det funkar inte med Jesper T's kod

```
<table border="0" cellspacing="1" style="border:1px solid #000000; border-collapse: collapse" width="100%">
<tr><td width="100%">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%">

<tr>
    <td width="100%"><b><font size="1" face="Tahoma">
    Gifta.</font></b></td>
  </tr>

    
  <tr>
    <td width="100%"><font size="1" face="Tahoma">test.</font>
  <tr>
    <td width="100%"><font size="1" face="Tahoma">test.</font>
  <tr>
    <td width="100%"><font size="1" face="Tahoma">test.</font>
</table><br>

<table border="0" cellspacing="1" style="border:1px solid #000000; border-collapse: collapse" width="100%">
<tr><td width="100%">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%">

<tr>
    <td width="100%"><b><font size="1" face="Tahoma">
    Kompanjoner.</font></b></td>
  </tr>

    
  <tr>
    <td width="100%"><font size="1" face="Tahoma">test.</font>
  <tr>
    <td width="100%"><font size="1" face="Tahoma">test.</font>
</table><br>

<table border="0" cellspacing="1" style="border:1px solid #000000; border-collapse: collapse" width="100%">
<tr><td width="100%">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%">

<tr>
    <td width="100%"><b><font size="1" face="Tahoma">
    Kompisar.</font></b></td>
  </tr>

    
  <tr>
    <td width="100%"><font size="1" face="Tahoma">test.</font>
</table><br>

<table border="0" cellspacing="1" style="border:1px solid #000000; border-collapse: collapse" width="100%">
<tr><td width="100%">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%">

<tr>
    <td width="100%"><b><font size="1" face="Tahoma">
    Kusin.</font></b></td>
  </tr>

    
  <tr>
    <td width="100%"><font size="1" face="Tahoma">test.</font>
</table><br>

<table border="0" cellspacing="1" style="border:1px solid #000000; border-collapse: collapse" width="100%">
<tr><td width="100%">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%">

<tr>
    <td width="100%"><b><font size="1" face="Tahoma">
    Tvillingar.</font></b></td>
  </tr>

    
  <tr>
    <td width="100%"><font size="1" face="Tahoma">test.</font>
</table><br>

<table border="0" cellspacing="1" style="border:1px solid #000000; border-collapse: collapse" width="100%">
<tr><td width="100%">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%">

<tr>
    <td width="100%"><b><font size="1" face="Tahoma">
    Älskling.</font></b></td>
  </tr>

    
  <tr>
    <td width="100%"><font size="1" face="Tahoma">test.</font>
  <tr>
    <td width="100%"><font size="1" face="Tahoma">test.</font>
  <tr>
    <td width="100%"><font size="1" face="Tahoma">test.</font> 
</td>
</table>
```

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

## #6 — jboy_87, 2002-11-02T17:52Z

testa det här da!

```
<%
test = "antar"
Set Connect = Server.CreateObject("ADODB.Connection") 
Connect.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("database/kompisar.mdb")&"" 
Set RecSet = Server.CreateObject("ADODB.Recordset") 
Addera = "Select * From Kompisar Where not accepterad=false and Kompis1 = '"&test&"' or kompis2 = '"&test&"' and not accepterad=false order by relation,Kompis1 ASC" 
RecSet.Open Addera, Connect, 3, 3 

do until recset.eof 

if not recset("Relation") = strRelation then 
strRelation = recset("Relation")
If first = "no" then%>
</td></table></table><br>
<%End If%>
<table border="0" cellspacing="1" style="border:1px solid #000000; border-collapse: collapse" width="100%">
<tr><td width="100%">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%">

<tr>
    <td width="100%"><b><font size="1" face="Tahoma">
    <%=recset("Relation")%>.</font></b></td>
  </tr>

    <%end if%>
  <tr>
    <td width="100%"><font size="1" face="Tahoma">test.</font>
<%
first = "no"
RecSet.MoveNext
Loop

RecSet.Close
set recset = nothing
Connect.Close
set connect = nothing
%>
</table>
```

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

---

Tråden på webben: https://www.webforum.nu/amne/asp/57817-html-asp
