<%
first = "yes"
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 = 'antar' or kompis2 = 'antar' and not accepterad=false order by relation,Kompis1 ASC"
RecSet.Open Addera, Connect, 3, 3
do until recset.eof
Set Connect2 = Server.CreateObject("ADODB.Connection")
Connect2.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("Database/Medlemmar.mdb")&""
Set RecSet2 = Server.CreateObject("ADODB.Recordset")
if recset("kompis1") = "antar" then
Addera = "Select * From Medlemmar Where Anvandarnamn = '"&recset("kompis2")&"'"
end if
if recset("kompis2") = "antar" then
Addera = "Select * From Medlemmar Where Anvandarnamn = '"&recset("kompis1")&"' "
end if
RecSet2.Open Addera, Connect2, 3, 3
if recset("Relation") <> strRelation then
strRelation = recset("Relation")
If first <> "yes" 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>
<%End if%></tr>
<tr>
<td width="100%"><font size="1" face="Tahoma"><%=recset2("Anvandarnamn")%>.</font></td>
<%
response.write "</table>"
first = "no"
RecSet.MoveNext
Loop
RecSet.Close
set recset = nothing
Connect.Close
set connect = nothing
recset2.Close
set recset2 = nothing
Connect2.Close
set connect2 = nothing
%>
Finns iofs fler fel tror jag. Kanske att detta kan vara bättre:
<%
first = "yes"
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 = 'antar' or kompis2 = 'antar' and not accepterad=false order by relation,Kompis1 ASC"
RecSet.Open Addera, Connect, 3, 3
do until recset.eof
Set Connect2 = Server.CreateObject("ADODB.Connection")
Connect2.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("Database/Medlemmar.mdb")&""
Set RecSet2 = Server.CreateObject("ADODB.Recordset")
if recset("kompis1") = "antar" then
Addera = "Select * From Medlemmar Where Anvandarnamn = '"&recset("kompis2")&"'"
end if
if recset("kompis2") = "antar" then
Addera = "Select * From Medlemmar Where Anvandarnamn = '"&recset("kompis1")&"' "
end if
RecSet2.Open Addera, Connect2, 3, 3
if recset("Relation") <> strRelation then
strRelation = recset("Relation")
If first <> "yes" then%>
</td></tr></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>
<%End if%></tr>
<tr>
<td width="100%"><font size="1" face="Tahoma"><%=recset2("Anvandarnamn")%>.</font></td></tr>
<%
response.write "</table>"
first = "no"
RecSet.MoveNext
Loop
RecSet.Close
set recset = nothing
Connect.Close
set connect = nothing
recset2.Close
set recset2 = nothing
Connect2.Close
set connect2 = nothing
%>
<%
first = "yes"
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 = 'antar' or kompis2 = 'antar' and not accepterad=false order by relation,Kompis1 ASC"
RecSet.Open Addera, Connect, 3, 3
do until recset.eof
Set Connect2 = Server.CreateObject("ADODB.Connection")
Connect2.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("Database/Medlemmar.mdb")&""
Set RecSet2 = Server.CreateObject("ADODB.Recordset")
if recset("kompis1") = "antar" then
Addera = "Select * From Medlemmar Where Anvandarnamn = '"&recset("kompis2")&"'"
end if
if recset("kompis2") = "antar" then
Addera = "Select * From Medlemmar Where Anvandarnamn = '"&recset("kompis1")&"' "
end if
RecSet2.Open Addera, Connect2, 3, 3
if recset("Relation") <> strRelation then
strRelation = recset("Relation")
If first <> "yes" 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>
<%End if%></tr>
<tr>
<td width="100%"><font size="1" face="Tahoma"><%=recset2("Anvandarnamn")%>.</font></td></tr>
<%
first = "no"
RecSet.MoveNext
Loop
response.write "</table><br>"
RecSet.Close
set recset = nothing
Connect.Close
set connect = nothing
recset2.Close
set recset2 = nothing
Connect2.Close
set connect2 = nothing
%>
Sista försöket, sen får du sluta bry dig om allt jag någonsin skriver:
<%
first = "yes"
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 = 'antar' or kompis2 = 'antar' and not accepterad=false order by relation,Kompis1 ASC"
RecSet.Open Addera, Connect, 3, 3
do until recset.eof
Set Connect2 = Server.CreateObject("ADODB.Connection")
Connect2.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("Database/Medlemmar.mdb")&""
Set RecSet2 = Server.CreateObject("ADODB.Recordset")
if recset("kompis1") = "antar" then
Addera = "Select * From Medlemmar Where Anvandarnamn = '"&recset("kompis2")&"'"
end if
if recset("kompis2") = "antar" then
Addera = "Select * From Medlemmar Where Anvandarnamn = '"&recset("kompis1")&"' "
end if
RecSet2.Open Addera, Connect2, 3, 3
if recset("Relation") <> strRelation then
strRelation = recset("Relation")
If first <> "yes" 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>
<%End if%></tr>
<tr>
<td width="100%"><font size="1" face="Tahoma"><%=recset2("Anvandarnamn")%>.</font></td></tr>
<%
first = "no"
RecSet.MoveNext
Loop
response.write "</table><br></td></tr></table><br>"
RecSet.Close
set recset = nothing
Connect.Close
set connect = nothing
recset2.Close
set recset2 = nothing
Connect2.Close
set connect2 = nothing
%>
<%
first = "yes"
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 = 'antar' or kompis2 = 'antar' and not accepterad=false order by relation,Kompis1 ASC"
RecSet.Open Addera, Connect, 3, 3
do until recset.eof
Set Connect2 = Server.CreateObject("ADODB.Connection")
Connect2.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("Database/Medlemmar.mdb")&""
Set RecSet2 = Server.CreateObject("ADODB.Recordset")
if recset("kompis1") = "antar" then
Addera = "Select * From Medlemmar Where Anvandarnamn = '"&recset("kompis2")&"'"
end if
if recset("kompis2") = "antar" then
Addera = "Select * From Medlemmar Where Anvandarnamn = '"&recset("kompis1")&"' "
end if
RecSet2.Open Addera, Connect2, 3, 3
if recset("Relation") <> strRelation then
strRelation = recset("Relation")
If first <> "yes" then%>
[b]</table><br>[/b]
<%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>
<%End if%></tr>
<tr>
<td width="100%"><font size="1" face="Tahoma"><%=recset2("Anvandarnamn")%>.</font></td></tr>
<%
first = "no"
RecSet.MoveNext
Loop
response.write "</table><br></td></tr></table><br>"
RecSet.Close
set recset = nothing
Connect.Close
set connect = nothing
recset2.Close
set recset2 = nothing
Connect2.Close
set connect2 = nothing
%>
Vad e det? (fetmarkerat)
142 ms totalt · 3 externa anrop · v20260731065814-full.25f56b17