ASP Hjælp
Er der ikke nogen der kan checke mit script igennem jeg har prøvet mange ting men når jeg retter det så siger den der er fejl et andet sted. Nogle der vil checke den igennem??Script:
----------------------------------------
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
<title>( YIGEN ) ( SØG )</title>
<style>
<!--
A:link {text-decoration: underline; color: white;}
A:visited {text-decoration: none;}
A:active {text-decoration: none;}
A:hover {text-decoration: underline; color: #FFFF66;}
-->
</style>
</head>
<body bgcolor="#FFFFFF">
<div align="center"><center>
<table border="0" cellpadding="0" cellspacing="0" width="350">
<tr>
<td width="100%"><img src="images/searchtop.gif"
width="355" height="8"></td>
</tr>
<tr>
<td width="100%"><table border="0" cellpadding="0"
cellspacing="0" width="100%">
<tr>
<td background="images/searchside.gif"><img
src="images/searchside.gif" width="4"
height="138"></td>
<td width="100%" background="white"
class="standart"> <a href="start.htm"><img
src="images/logo.gif" border="0" width="324"
height="97"></a><form>
<p align="center"><input type="text"
size="20" name="search"><input type="image"
name src="sknap.jpg" alt="Search"
align="bottom" border="0" width="65"
height="29" value="Start søgning"></p>
</form>
</td>
<td background="images/searchside.gif"><img
src="images/searchside.gif" width="4"
height="138"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%"><img src="images/searchbot.gif"
width="355" height="8"></td>
</tr>
</table>
</center></div>
<p align="center"> </p>
<div align="center"><center>
<table border="0" cellpadding="0" cellspacing="0" width="700">
<tr>
<td width="20%" background="white"><div align="center"><center><table
border="0" cellpadding="0" cellspacing="0" width="700">
<tr>
<td width="11%"><div align="center"><center><table
border="0" cellpadding="0" cellspacing="0"
width="100%">
<tr>
<td width="12%"><div align="center"><center><table
border="0" cellpadding="0"
cellspacing="0" width="700">
<tr>
<td width="11%" bgcolor="#000000"><img
src="images/menuleft.jpg"
width="75" height="19"></td>
<td width="15%" bgcolor="#000000"><font
color="#FFFFFF"> </font><a
href="email.htm"><font
color="#FFFFFF">E - Mail</font></a></td>
<td width="5%" bgcolor="#000000"> </td>
<td width="16%" bgcolor="#000000"><a
href="twebside.htm"><font
color="#FFFFFF">Tilføj Webside</font></a></td>
<td width="5%" bgcolor="#000000"> </td>
<td width="16%" bgcolor="#000000"><a
href="reklame.htm"><font
color="#FFFFFF">Reklame Info</font></a></td>
<td width="5%" bgcolor="#000000"> </td>
<td width="15%" bgcolor="#000000">
<a href="chat.htm"><font
color="#FFFFFF">Chat</font></a></td>
<td width="6%" bgcolor="#FFFFFF"><img
src="images/menuright.jpg"
width="75" height="19"></td>
</tr>
</table>
</center></div></td>
</tr>
</table>
</center></div></td>
</tr>
</table>
</center></div></td>
</tr>
</table>
</center></div><div align="center"><center>
<table border="1" cellpadding="0" cellspacing="0" width="700"
bordercolor="#000000">
<tr>
<td width="50%"><p align="center"><font
face="Westminster"></font> </p>
<h1 align="center"><font face="Westminster">< <u>Resultat</u>
></font></h1>
<div align="center"><center><table border="0"
cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="20%"> </td>
<td width="60%"><%
' Henter værdien fra start.htm
strKeyword = Trim(Request.Form("Keyword"))
If Len(strKeyword) = 0 Then
Response.Clear
Response.Redirect("start.htm")
Else
strKeyword = Replace(strKeyword,"'","'")
End If
strSQL = "SELECT TOP 10 * FROM tabel id, link, beskrivelse, søgescript 1,søgescript 2, søgescript 3, søgescript 4, søgescript 5, fornavn ORDER BY efternavn"
strSQL = strSQL & " (Link LIKE '%" & strKeyword & "%')"
strSQL = strSQL & " OR (Beskrivelse LIKE '%" & strKeyword & "%')"
strSQL = strSQL & ""
strSQL = strSQL & ""
strDSN = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ="&Server.MapPath("search.mdb")
Set myConn = Server.CreateObject("ADODB.Connection")
myConn.Open strDSN
Set rs = myConn.Execute(strSQL)
If Not (rs.BOF Or rs.EOF) Then
Response.Write "<table border="0" cellpadding="0" cellspacing="0" width="100%">"
Response.Write "<td width="100%"><strong><u>""<a href = """ & rs("link") & "">" & rs("titel") & ""</a></u></strong></font></td></tr>"
Response.Write "<td width="100%">"" & rs("Beskrivelse") & ""</td></tr></table>"
Response.Write ""
Response.Write ""
Do While Not rs.EOF
Response.Write ""
Response.Write ""
Response.Write ""
Response.Write ""
rs.MoveNext
Loop
Response.Write ""
Else
Response.Clear
Response.Redirect("ikkefundet.htm")
End If
myConn.Close
Set myConn = Nothing
%></td>
<td width="20%"> </td>
</tr>
</table>
</center></div><p align="center"> </p>
</td>
</tr>
</table>
</center></div><div align="center"><center>
<table border="0" cellpadding="0" cellspacing="0" width="700">
<tr>
<td width="11%" bgcolor="#000000"><img
src="images/1menuleft.jpg" width="86" height="19"></td>
<td width="11%" bgcolor="#000000"> </td>
<td width="11%" bgcolor="#000000"> </td>
<td width="11%" bgcolor="#000000"> </td>
<td width="11%" bgcolor="#000000"> </td>
<td width="11%" bgcolor="#000000"> </td>
<td width="11%" bgcolor="#000000"> </td>
<td width="11%" bgcolor="#000000"> </td>
<td width="6%" bgcolor="#FFFFFF"><img
src="images/1menuright.jpg" width="75" height="19"></td>
</tr>
</table>
</center></div>
</body>
</html>
----------------------------------------
Og hvis du også gad at hjælpe mig med at få den til at vise max 10 tegn og at man kan trykke næste. så var du flink.
