ciao ragazzi, devo inpostare in una pagina asp che recupera news da un database, una data di expire.
finora sono riuscito con successo ad inserire la data di expired nel databese tramite form ma adesso mi sono impantanato.
per piacere chi mi da una manina? almeno per cominciare :-)
<%
'!!! START NEWS SCRIPT
dim cConn, RS2, sConn
Application.Lock
'<-- IMPORTANT: SET THE FOLLOWING LINE TO CORRESPOND WITH YOUR DATABASE'S FOLDER
Application("\mdb-database\db.mdb")="\mdb-database\"
Application.Unlock
sConn="Driver={Microsoft Access Driver (*.mdb)};Dbq=" & Server.Mappath("\mdb-database\db.mdb")
set cConn=Server.CreateObject("ADODB.Connection")
cConn.Open sConn
set RS2=cConn.Execute("SELECT * FROM News ORDER BY Dates DESC")
do while RS2.EOF=False
%>
<head>
<title></title>
<base target="_self">
<meta name="Microsoft Theme" content="none, default">
</head>
<body>
<p align="center"><font face="arial,sans-serif,verdana,times new roman" size="5" color="#FF0000">
LAST MINUTE</font></p>
<font size="2" face="arial,sans-serif,verdana,times new roman">
<div align="center">
<center>
<table border="1" width="700">
<tr>
<td>
<a href="news.asp?index=<%=RS2("Index")%>"><%=RS2("He adLine")%>
</a></font>
Prenota (Reservation): "><%=RS2("Author")%>
<%=RS2("ShortText")%> <%=RS2("Author")%></a></td>
</tr>
</table>
</center>
</div>
<p align="center">
<%
RS2.MoveNext
loop
set RS2=Nothing
'### END NEWS SCRIPT
%></p>
<p align="center"></p>
-----