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> <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
%>