Udtræk fra MySQL problem
Hej.Jeg bruger denne kode for at trække mine dataer ud med:
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<%
Set rsnews = Conn.Execute("SELECT * from nyhp2news order by dato desc")
Do Until rsnews.EOF
StrTekst = rsNews("tekst")
If len(StrTekst) < 100 Then
StrTekst = StrTekst & "... <a href='"& filnavn &"?sid=2&id="& rs("id") &" class=""link'>Læs mere</a>"
End If
%>
<tr>
<td style="border-left-width: 1; border-right-width: 1; border-top-width: 1; border-bottom-style: solid; border-bottom-width: 1"><%=rsNews("overskrift")%> </td>
<td style="border-left-width: 1; border-right-width: 1; border-top-width: 1; border-bottom-style: solid; border-bottom-width: 1"><%=rsNews("dato")%> </td>
</tr>
<tr>
<td width="100%" colspan="2"><%=StrTekst%> </td>
</tr>
<%
RsNews.MoveNext
Loop
%>
</table>
Men jeg får denne fejl:
Microsoft VBScript runtime error '800a01a8'
Object required: ''
/nyhp2/news.asp, line 4
Hvad f***** er der galt.
/Peppino