Hjælp til script
Hej..Her under er der en kode hvor på siden at den indsætter nogle tekster fra en access database...
Jeg skal bare ha gjort så'en at de nye data jeg indsætter i tabellen skal visses øverst på siden.. Altså de nye nyheder skal øverst på siden istedet for nederst ?!?! Håber i kan hjælpe..
-----------------
<!--#include file="count.ext"-->
<HTML>
<HEAD>
<TITLE>DOWNLOADS</TITLE>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
if (navigator.appName == "Microsoft Internet Explorer") {
document.write("<LINK REL=\"STYLESHEET\" TYPE=\"text/css\" HREF=\"visperie.css\">")
}
else if (navigator.appName == "Netscape") {
document.write("<LINK REL=\"STYLESHEET\" TYPE=\"text/css\" HREF=\"vispern.css\">")
}
else {
document.write("<LINK REL=\"STYLESHEET\" TYPE=\"text/css\" HREF=\"visperie.css\">")
}
// -->
</SCRIPT>
</HEAD>
<BODY background="backmain.gif">
<TABLE BORDER="0" WIDTH="598" CELLPADDING="3" CELLSPACING="0"><TR><TD CLASS="fixedsys">AVAILABLE NEW
MOVIES</TD><TD CLASS="fixedsys" ALIGN="right">@ FREEMOVIEZ [www.freemoviez.cjb.net]</TD></TR></TABLE><IMG SRC="dot.gif" WIDTH="600" HEIGHT="1" BORDER="0" HSPACE="3"><BR><BR><TABLE BORDER="0" WIDTH="598" CELLPADDING="3" CELLSPACING="0"><TR><TD><%=movCount%> AVAILABLE NEW
MOVIES. PAGE 1 OF 1.<BR><BR><BR></TD></TR></TABLE><IMG SRC="dot.gif" WIDTH="600" HEIGHT="1" BORDER="0" HSPACE="3"><BR><BR>
<%
strSQL = "SELECT * FROM Movies"
strDSN = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("wrz.mdb") & ";DriverId=25;FIL=MS Access"
Set myConn = Server.CreateObject("ADODB.Connection")
myConn.Open strDSN
Set rs = myConn.Execute(strSQL)
If Not (rs.BOF Or rs.EOF) Then
Do While Not rs.EOF
movCount = movCount + 1
%>
<TABLE BORDER="0" WIDTH="598" CELLPADDING="3" CELLSPACING="0">
<TR>
<TD COLSPAN="2" CLASS="fixedsys">
<FONT COLOR="#FF0000"><%=rs("movTitle")%> [<%=rs("movSize")%>/<%=rs("movPices")%>]</FONT>
</TD>
</TR>
<TR>
<TD VALIGN="top">
<%=rs("movDisc")%>
</TD>
<TD ALIGN="right" VALIGN="top">
<img border="0" src="<%=rs("movPicUrl")%>">
</TD>
</TR>
<TD COLSPAN="2" VALIGN="top">
<A HREF="<%=rs("movUrl")%> "> [Download Here]</a> <A HREF="<%=rs("movMoreInfo")%>">[NFO]</A>
</TD>
</TR>
</TR>
<TD COLSPAN="2" VALIGN="top">
</TD>
</TR>
</TABLE>
<%
rs.movenext
Loop
Else:
%> </FONT></p>
<p><FONT FACE=Arial>No movies listed!
<%
end if
%> </FONT> </p>
<IMG SRC="dot.gif" WIDTH=600 HEIGHT=1 BORDER=0 ALT="" HSPACE="3">
<BR><BR>
<TABLE BORDER="0" WIDTH="598" CELLPADDING="3" CELLSPACING="0"><TR><TD><%=movCount%> AVAILABLE NEW
MOVIES. PAGE 1 OF 1.<BR><BR><BR></TD></TR></TABLE><IMG SRC="dot.gif" WIDTH="600" HEIGHT="1" BORDER="0" HSPACE="3"><BR><BR>
</BODY>
</HTML>