Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Embed Photo In Static Page

Quote Reply
Embed Photo In Static Page
Figured I'd start a new thread on this one

Ok the static page is concept works, but from the database entry (ie list all) there is a link to a photo. Instead of linking to the photo, we want to link to the static page with this photo in it.

I thought this would be easy once the static page issue was resolved. We can now click to the link that says "Photo 2" and the static Page come up, but the photo does not present itself.

Assumed we would just be using the same line of code as if we presented the photo on the first page. This is the line of code embedded in the static page "photo_large2.html"

<img src="db.cgi?cn=Photo2&do=view_file&db=<%db%>&id=<%ID%>">

Example may be seen at
http://www.gatman.com/cgi-bin/dbsql/db.cgi

user: test
pwd: test

Also (if there is a quick answer), it would be easier if a page such as "photo_enlarged.html" page were the only page used for the enlarged photos and we just past the photo id on to the page.
<a href="db.cgi?cn=Photo2&do=view_file&db=<%db%>&id=<%ID%>">Photo 2</a> links to the photo_enlarged.html and Photo 2,3, 4, etc. present themselves accordingly

Thanks

John
Quote Reply
Re: [gatman] Embed Photo In Static Page In reply to
Hi,

If you want to show Photo2, Photo3.. up then just make a link:
<a href="db.cgi?do=home&page=photo_enlarged.html&db=<%db%>&id=<%ID%>&cn=Photo2"> Photo 2</a>

The HTML of photo_enlarged.html should be:
....

<img src="db.cgi?do=view_file&db=<%db%>&cn=<%cn%>&id=<%id%>">
....

Hope that helps,

TheStone.


B.

Last edited by:

TheStone: Jan 10, 2002, 10:02 AM