Global.asa
Hej med jer.Er der nogen der ved hvad global.asa er og hvad det kan bruges til??
Og jeg er ved at lave en søgemaskine.
hvad er fejlen på dette scrit
---------------------------------------
<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
' Hvis der ikke er skrevet i feltet
Response.Clear
Response.Redirect("start.htm")
Else
' Hvis der er skrevet i feltet
strKeyword = Replace(strKeyword,"'","''")
End If
' Opbygger en dynamisk SQL streng
strSQL = "SELECT TOP 10 * FROM tabel ORDER BY id ORDER BY link ORDER BY beskrivelse"
strSQL = strSQL & " (Link LIKE '%" & strKeyword & "%')"
strSQL = strSQL & " OR (Beskrivelse LIKE '%" & strKeyword & "%')"
strSQL = strSQL & ""
strSQL = strSQL & ""
' Skaber DSNLess forbindelse til DBen
strDSN = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ="&Server.MapPath("search.mdb")
Set myConn = Server.CreateObject("ADODB.Connection")
myConn.Open strDSN
' Skaber et recordset udfra SQL strengen
Set rs = myConn.Execute(strSQL)
If Not (rs.BOF Or rs.EOF) Then
' Hvis der er fundet poster på søgningen
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
' Hvis der ikke er fundet poster på søgningen
Response.Clear
Response.Redirect("ikkefundet.htm")
End If
' Rydder op efter os
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>
----------------------------------------
Meningen er at den skal vises på denne måde
---------------------------------------
1. TITEL/LINK
Beskrivelse
2. TITEL/LINK
Beskrivelse
3. TITEL/LINK
Beskrivelse
4. TITEL/LINK
Beskrivelse
5. TITEL/LINK
Beskrivelse
6. TITEL/LINK
Beskrivelse
7. TITEL/LINK
Beskrivelse
8. TITEL/LINK
Beskrivelse
9. TITEL/LINK
Beskrivelse
10. TITEL/LINK
Beskrivelse
Næste>>>>
---------------------------------------
hvis i kan se fejlen så svar tilbage hurtis mulligt
