by Armand Datema
Here is a new tutorial on how to include images in ASP. Without using blobs or binary
fields.
Here is a new tutorial on how to include images in ASP.
First we start of with the basic HTML
Now lets create the database connection
set conntemp=server.createobject(“adodb.connection”)
Set con =
Server.CreateObject(“ADODB.Connection”)
Now lets open the database connection,
create the SQL Statement and open the result set, my
ODBC name here is image and the table i am
going to query is called image
con.Open
“DSN=image;”
Set rs =
server.createobject(“adodb.recordset”)
rs.Open “select *
from image”, con
do While not rs.EOF
%>
The code so far
was pretty standard, creating a connection, opening recordset
and run the query. Now lets go to te interesting part, how to
add the images 🙂
First we need to add a bit
HTML code for the table display
Now lets finish the rest
of the code and close the HTML tags.
rs.moveNext
loop
%>
| Image description |
Actual Image |
| In the next cell you see the
In the next part of the
Some extra HTML code for picture |
Now we add the image, as you can see
|
Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved
Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.