Forums

This topic is locked

img src problem

Posted 21 Jan 2002 18:35:10
1
has voted
21 Jan 2002 18:35:10 David Mr posted:
I am having a problem with having the img come from the database in a protected area of my site. The images came through from the database link fine, but when I restricted access to the page they no longer come up. All the other database info shows but I get a broken link for the image. What can I do so this doesn't happen?


Replies

Replied 23 Jan 2002 11:35:15
23 Jan 2002 11:35:15 Joel Martinez replied:
a couple of questions.
1. is the actual image stored in the database, or just a link?

2. how are you restricting access to the page

3. are you trying to reference the image in the restricted page, or from another page?

Joel Martinez [ ]
----------
E-Commerce Concepts with Ultradev...pre-order yours at
www.basic-ultradev.com/ecomm_concepts/
Replied 24 Jan 2002 01:02:06
24 Jan 2002 01:02:06 David Mr replied:
I just have the image name in the database (image.jpg) and direct it to the file in the image source box after I select the data source (in insert image) this works outside of the restricted page.

I am restricting the page using the user authentication tools Ultradev comes with.

I am not sure of your last question but here goes. I have the images out side of the resricted files in a image folder. I believe that is the problem because it won't let the data through, though it does allow the other DB info come through.

Any ideas?

Replied 24 Jan 2002 15:52:11
24 Jan 2002 15:52:11 Joel Martinez replied:
the answer to your question lies with troubleshooting... What I always do when I'm fixing a problem with a relative url is to view the trouble page in a browser, then go to "View > Source" to see the actual HTML generated by the script.

my guess is that the relative link the file is incorrect...

Joel Martinez [ ]
----------
E-Commerce Concepts with Ultradev...pre-order yours at
www.basic-ultradev.com/ecomm_concepts/

Reply to this topic