allora prova cosi
Codice PHP:
<%@ Language=JAVASCRIPT %>
<%
var notizia2 = Server.CreateObject("ADODB.Recordset");
notizia2.ActiveConnection = MM_articolieconomia_STRING;
notizia2.Source = "SELECT * FROM [notizia 1] WHERE (pubblica=Yes) and (tiponotizia='economia') ORDER BY data DESC";
notizia2.CursorType = 0;
notizia2.CursorLocation = 3;
notizia2.LockType = 1;
notizia2.Open();
var notizia2_numRows = 0;
%>
<%
var Repeat1__numRows = 5;
var Repeat1__index = 0;
notizia2_numRows += Repeat1__numRows;
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Documento senza titolo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="NiftyLayout.css" rel="stylesheet" type="text/css">
</head>
<body>
<table border="0" cellpadding="7" cellspacing="0" width="502" align="center">
<% while ((Repeat1__numRows-- != 0) && (!notizia2.EOF)) { %>
<%
objRecordSet.MoveNext();
if objRecordSet.EOF == true {
objRecordSet.MovePrevious();
}else{
objRecordSet.MovePrevious();
%>
<tr>
<td width="354" valign="top" style="border-bottom: 1px dotted #8A6C4C;padding:10">
<div class="titolo2"><%=(notizia2.Fields.Item("titolo").Value)%></div>
<div class="notizia2"><%=(notizia2.Fields.Item("occhiello").Value)%></div></td>
<td width="120" style="border-bottom: 1px dotted #8A6C4C;padding:10">[url="view.asp?id=<%=(notizia2.Fields.Item("]" target="_blank">[img]images/<% =(notizia2.Fields.Item([/img]" height="60" hspace="10" border="1" align="left" />[/url]</td>
</tr>
<%
}
Repeat1__index++;
notizia2.MoveNext();
}
%>
</table>
</body>
</html>
<%
notizia2.Close();
%>