ok bene eccolo:
codice:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
' dichiaro la variabile che conterrà l'oggetto Connection
Dim conn
'creo l'oggetto Connection
Set conn = Server.CreateObject("ADODB.Connection")
'apro la connessione con la fonte di dati
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & server.mapPath("\db\miodb.mdb")
%>
<%
if not RS_Offerta.EOF then
response.write RS_Offerta("foto")
end if
%>
<%
Dim RS_offerta__MMColParam
RS_offerta__MMColParam = "1"
If (Request.QueryString("ID_auto") <> "") Then
RS_offerta__MMColParam = Request.QueryString("ID_auto")
End If
%>
<%
Dim RS_offerta
Dim RS_offerta_numRows
Set RS_offerta = Server.CreateObject("ADODB.Recordset")
RS_offerta.ActiveConnection = conn
RS_offerta.Source = "SELECT * FROM T_auto WHERE ID_auto = " + Replace(RS_offerta__MMColParam, "'", "''") + ""
RS_offerta.CursorType = 0
RS_offerta.CursorLocation = 2
RS_offerta.LockType = 1
RS_offerta.Open()
RS_offerta_numRows = 0
%>
<html>
<head>
<title>TAURISANO</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="stile1.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body background="immagini/default1-10.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td background="immagini/sfondo_03.gif"> <table width="400" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr bgcolor="#CCFFFF">
<td height="0" colspan="5" background="immagini/sfondo_03.gif" class="testo1">
<div align="center" class="testo2">DETTAGLI AUTOVETTURA</div></td>
</tr>
<tr class="testo1">
<% if (RS_offerta.Fields.Item("foto").Value)="" then %>
<td width="36" bgcolor="#FFFFFF">
<div align="center">[img]images/profilo_01.gif[/img]</div></td>
<% else %>
<td width="36" bgcolor="#000000">
<div align="center">[img]vedi.aspx?img=immagini/usato/<%=(RS_offerta.Fields.Item([/img]&l=160&h=120" border="0" onClick="MM_openBrWindow('immagine.asp?ID_auto=<%=(RS_offerta.Fields.Item("ID_auto").Value)%>','','width=640,height=480')"></div></td>
<% end if %>
<td width="364"colspan="4" valign="top" bgcolor="#CCFFFF">
marca:<span class="testo2"><%=(RS_offerta.Fields.Item("marca").Value)%></span>
modello:<span class="testo2"><%=(RS_offerta.Fields.Item("modello").Value)%></span>
versione:<span class="testo2"><%=(RS_offerta.Fields.Item("versione").Value)%></span>
colore:<%=(RS_offerta.Fields.Item("colore").Value)%>
cilindrata:<%=(RS_offerta.Fields.Item("cc").Value)%>
alimentazione:<%=(RS_offerta.Fields.Item("alim").Value)%>
CV:<%=(RS_offerta.Fields.Item("CV").Value)%>•KW:<%=(RS_offerta.Fields.Item("KW").Value)%>
chilometri:<%=(RS_offerta.Fields.Item("chilometri").Value)%>
prezzo: <%=(RS_offerta.Fields.Item("prezzo").Value)%>
</p>
</td>
</tr>
<tr class="testo1">
<td colspan="5" background="immagini/sfondo_03.gif" bgcolor="#FFFFFF">
<div align="center">ALTRE INFORMAZIONI</div></td>
</tr>
<tr bgcolor="#CCFFFF" class="testo1">
<td colspan="5">
<p align="justify"><%=(RS_offerta.Fields.Item("altro").Value)%></p>
<div align="center"></div>
<div align="center"></div>
<div align="center"></div>
<div align="right"></div></td>
</tr>
</table></td>
</tr>
</table>
<div align="center">
TORNA ALLA PAGINA PRECEDENTE</div>
</body>
</html>
<%
RS_offerta.Close()
Set RS_offerta = Nothing
%>
ok ecco tutto quello che c'è nella pagina....
cmq nella linea 14 c'è il codice che ho aggiunto per la verifica come mi diceva mems ovvero questo:
codice:
<%
if not RS_Offerta.EOF then
response.write RS_Offerta("foto")
end if
%>
grazie mille gente