ho trovato un articolo della microsoft dove spiega come visualizzare un aimmagine....
il codice e` il seguente...
Codice PHP:
<%@ language="vbscript" %>
<%
dim cn
dim rs
set cn=server.createobject("ADODB.Connection")
set rs=server.createobject("ADODB.Recordset")
cn.open "Provider=SQLOLEDB;data source=servername;" & _
"initial catalog=pubs;user id=<UID>;password=<strong password>"
set rs.activeconnection = cn
rs.source = "select imgPath from ImgTable where imgID=1"
rs.open
%>
<img src=<%= trim(rs.fields(0))%>>
<%
rs.close
set rs=nothing
cn.close
set cn = nothing
%>
</BODY>
</HTML>
ora nel codice si fa riferimento e si apre il collegamento
pero` per il collegamento al mio primo data base...libreria..(rinominato ora PUBS) ho usato questo codice e vorrei usare lo stesso....si puo`?
Codice PHP:
dim strCode
strCode="pippo"
' Mappaggio del database
Set Conn=Server.CreateObject("ADODB.Connection")
strConn="driver={Microsoft Access Driver (*.mdb)}; "
strConn=strConn & " DBQ=" & Server.MapPath("PUBS.mdb")
strConn=strConn & ";pwd=" & strCode
Conn.Open strConn
rs.source = "select imgPath from ImgTable where imgID=1"
rs.open
%>
qualche aiuto!! chiarimenti?
graziee!!