Affichage d image en asp

Fermé
KPAN - 16 déc. 2011 à 18:08
Bonjour,


Je débutant en asp
j'ai stocké les noms d un certains nombre d image que je dois afficher dans ma page asp mais l image de s affiche pas a l exécution

voici mon de
extraction de l image

<%
dim Photoimg1
dim Photoimg2
dim Photoimg3
dim Photoimg4

dim Photolink1
dim Photolink2
dim Photolink3
dim Photolink4

dim Photorec
set Photorec = Server.createObject("ADODB.recordset")
Photorec.Open "galeriephoto",strconnect,adOpenstatic,adLockOPTIMISTIC,adCmdTable
Photorec.movefirst
i=1
do while not Photorec.eof
Photoimg1=Photorec("imagegate")
Photolink1=Photorec("titregate")

Photorec.movenext
i=i+1
loop



Photorec.Close
set Photorec=Nothing
%>

pour afficher

<p align="center">
<img src= "images/<% =Photoimg1 %>" alt="<%=Photolink1%>" title="<%=Photolink1%>" width="600" height="400"/> <br/>
<span class="Style2000"><%=Photoimg1%></span><br/>


merci de m aider