Crash1hd
01-31-2003, 12:50 PM
does anyone have a reference to a way where you could put a link into a field and hit return and it then checks the site the link is from and returns all the images that are in the directory that the link is in for example
on the output page you would have something like
<%
Set Conn = Server.CreateObject("ADODB.Connection")
Set RS = Server.CreateObject("ADODB.Recordset")
StrConn = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.Mappath("Number.mdb")
Conn.Open(StrConn)
Set RS = Conn.Execute("select * from Number")
%>
<%
do until RS.EOF
response.write "<img src=http://webpage/imagefolder/" & RS.fields("NumberID") & ".jpg><BR>"
RS.movenext
Loop
%>
Above works but you have to have a database file that has the field NumberID full of numbers from 1 to 10000 that way it checks and returns all possible images but its a really bad bucherd way to my opinion!
What this would acomplish would be a Quick way to view all images on a website on one page (Only people with broadband would even bother to try) :)
lol
P.s. what needs to change is remove the database and use maybe a auto number genirator just not sure how and then maybe an if then statement that goes something like this if image of number x exsist post image if image of number x doesnt exsist
ignore
any thoughts!
:cool:
on the output page you would have something like
<%
Set Conn = Server.CreateObject("ADODB.Connection")
Set RS = Server.CreateObject("ADODB.Recordset")
StrConn = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.Mappath("Number.mdb")
Conn.Open(StrConn)
Set RS = Conn.Execute("select * from Number")
%>
<%
do until RS.EOF
response.write "<img src=http://webpage/imagefolder/" & RS.fields("NumberID") & ".jpg><BR>"
RS.movenext
Loop
%>
Above works but you have to have a database file that has the field NumberID full of numbers from 1 to 10000 that way it checks and returns all possible images but its a really bad bucherd way to my opinion!
What this would acomplish would be a Quick way to view all images on a website on one page (Only people with broadband would even bother to try) :)
lol
P.s. what needs to change is remove the database and use maybe a auto number genirator just not sure how and then maybe an if then statement that goes something like this if image of number x exsist post image if image of number x doesnt exsist
ignore
any thoughts!
:cool: