ööööö vet inte riktigt! Så här ser min hela koden ut!
<%
Option Explicit
Dim sql, se, username, ja, rs, conn, id
username = Request.Cookies("username")
if username = "" then
Response.Redirect("nologin.asp?page=friends.asp")
end if
<!--#include file="conn.asp"-->
id=Request("id")
SQL="SELECT * FROM friends WHERE relid=" & id
16-->Conn.Execute(SQL)
Set Rs=Server.CreateObject("ADODB.Recordset")
Rs.open SQL, Conn, 3,3
rs("ac")="Ja"
Rs.Update
response.redirect("friends.asp?se=" & username)
%>
Du har <% %> i includefilen, vad händer om avslutar asp innan du gör include?
<%
Option Explicit
Dim sql, se, username, ja, rs, id
username = Request.Cookies("username")
if username = "" then
Response.Redirect("nologin.asp?page=friends.asp")
end if
[b]%>[/b]
<!--#include file="conn.asp"-->
[b]<%[/b]
id=Request("id")
SQL="SELECT * FROM friends WHERE relid=" & id
Conn.Execute(SQL)
Set Rs=Server.CreateObject("ADODB.Recordset")
Rs.open SQL, Conn, 3,3
rs("ac")="Ja"
Rs.Update
response.redirect("friends.asp?se=" & username)
%>