14. maj 2002 - 12:40
Der er
4 kommentarer og 1 løsning
databasekald
Hvorfor virker det ikke :-( <% %><!--#include file="..\includes\asp_conn.inc"--><% strSQL = "SELECT * FROM menuer" set rs = Conn.Execute(strSQL) do while not rs.EOF or rs.BOF %> <br> <a href='<% = rs("link") %>' target='content' onclick="doOnclick(this.style)"><% = rs("link_navn") %></a> <% rs.MoveNext Loop ' Luk databaseforbindelse Conn.Close Set Conn = Nothing %>
Annonceindlæg fra Salesforce
Du skal ikke have rs.BOF med, da du jo med et nyåbnet datasæt står ved beginning of file (BOF) <!--#include file="..includesasp_conn.inc"--> <% strSQL = "SELECT * FROM menuer" set rs = Conn.Execute(strSQL) do while not rs.EOF %> <br> <a href='<% = rs("link") %>' target='content' onclick="doOnclick(this.style)"><% = rs("link_navn") %></a> <% rs.MoveNext Loop ' Luk databaseforbindelse Conn.Close Set Conn = Nothing %>