Hjælp et nybegynder
Jeg har downloaded denne billede database (default.asp) som åbner showimg.asp hvor i billedet visses i stor størrelseJeg gerne ville gerne tælle (hits) når man trykker på et lille billede
er der nogen der kan hjælpe mig med det.
på forhånd tak.
Mogens Christensen
filen:
<html>
<head>
<title>Billede database</title>
</head>
<%
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath ("database.mdb")
strSQL = "Select * From Images"
Set RS = Conn.Execute(strSQL)
%>
<font size="1" face="Tahoma"><% Do While Not rs.EOF %></font>
<table border="0" cellpadding="0" cellspacing="4" width="40%"
bgcolor="#C0C0C0" align="center">
<tr>
<td rowspan="3" width="25%"><a
href="showimg.asp?id=<%= RS("ID")%>"><font size="1"><img src="<%= RS("Thumb")%>"></font></a></td>
<td width="80%"><font size="1"><strong><%= RS("Navn")%></strong></font></td>
</tr>
<tr>
<td width="80%"><font size="1">Oploaded den: <strong><%= RS("Dato")%></strong></font></td>
</tr>
<tr>
<td width="80%"><font size="1">Antal downloads: <strong><%= RS("Hits")%></strong></font></td>
</tr>
</table>
<%
RS.MoveNext
Loop
%></font><font size="1" face="Tahoma"><%
Conn.Close
Set Conn = Nothing
%></font>
</body>
</html>
