This content has been marked as final. Show 4 replies
vikash wrote:Gotcha - that actually makes life a little easier...
No, Actually I m putting the path of image in database in varchar2 and i want to show image in browser using this path...plz help
What you'll want to do with PHP (I'll lay this out for you a bit - I don't have a code editor/environment handy at the moment..)
1) You'll retrieve your image path from the database. Note that this path has to be the 'web accessible path', not a full file system path. (e.g. if your "Web Root" is /var/http/www and the full file system path to your image is /var/http/www/images/myimage.png, then the image you should have in the database is /images/myimage.png. This could also be a relative image path, etc.)
2) Use your retrieved database path to insert into your HTML <img/> tag. If you have 'short tags' enabled, it should look something like this:
<img src="<?= $myImagePath ?>" />
That's the basics - is there anything here that sounds familiar?