vi posto parte del codice dove si trova la stringa in questione.
cosa stane è che se il db lo risiedo dentro la stessa cartella del file news.asp
il tutto funziona. ma lavorando su aruba, sono costretto a metterlo in una cartella mdb-database e mi da questo errore
<%
dim strConn
strConn="Provider = Microsoft.Jet.OLEDB.4.0; Data Source ="&_
Server.MapPath("../mdb-database/cms.mdb")&"; Persist Security Info = False"
'Server.MapPath("news.mdb")&"; Persist Security Info = False"
%>
<% Set Conn =Server.CreateObject("ADODB.Connection")
Conn.Open strConn
strSQL = "SELECT * FROM news ORDER BY data "
Set RS = Server.CreateObject("ADODB.Recordset")
RS.Open strSQL, Conn
do while not RS.EOF
strtesto = strtesto & "<a href=" & RS("link") & ">" & RS("data")&"
" & RS("titolo") & "</a>" &"</br><hr> " & RS("testo") & "[img] & RS([/img]"&"
</p>"
RS.MoveNext
loop
RS.Close
Set RS = Nothing
Conn.Close
Set Conn = Nothing
%>
<SCRIPT language="JavaScript1.2">
var marqueewidth=150
var marqueeheight=140
var marqueecontents='<div class=testoscroll><%= Replace(strtesto, "'", "\'") %></div>'
if (document.all)
document.write('<marquee direction="up" scrollAmount="1" onMouseover="this.scrollAmount=1" onMouseout="this.scrollAmount=1" style="width:'+marqueewidth +';height:'+marqueeheight+'">' +marqueecontents+'</marquee>')
function regenerate(){
window.location.reload()
}