The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> web site image display
Louffeman
post Sep 24 2014, 01:29 PM
Post #1


Member
***

Group: Members
Posts: 69
Joined: 21-June 14
Member No.: 21,123



Hi,
I have a picture file (photos) which has some pictures, for ex. (cham1, cham2....).
now, I want to display these pictures in my web site,
could anyone tell me how I make the link in my database (the column is "image") ?
because I have aleady put in my DB : photos/cham1.JPG
but it doesn't work.
thanks!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Sep 24 2014, 01:49 PM
Post #2


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



QUOTE(Louffeman @ Sep 24 2014, 08:29 PM) *

I have aleady put in my DB : photos/cham1.JPG

What does the URL look like when you print it on a web page --does the file there exist?

Also note that URLs are case-sensitive, e.g. cham1.JPG and cham1.jpg are not the same.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Louffeman
post Sep 25 2014, 01:09 AM
Post #3


Member
***

Group: Members
Posts: 69
Joined: 21-June 14
Member No.: 21,123



yes, the file "photos" is in the web site file
I put cham1.JPG or cham1.jpg
the result is the same, please see the link
http://www.hostingpics.net/viewer.php?id=828864cham.jpg
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Sep 25 2014, 04:13 AM
Post #4


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



CODE
photos/cham1.JPG

is not the same URL as

CODE
http://www.hostingpics.net/viewer.php?id=828864cham.jpg

unsure.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Sep 25 2014, 04:18 AM
Post #5


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



I think maybe the image at hostingpics is a screen cap of something, but that link doesn't work either. unsure.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Sep 25 2014, 10:33 AM
Post #6


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



Doesn't the url work for you? The url from there links to http://img4.hostingpics.net/pics/828864cham.jpg .
But without the url of OP's page, we have no reference.

@Louffeman
I suppose you use PHP to serve the images from your DB. Try searching for "show image from database in php".
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Louffeman
post Sep 26 2014, 01:40 AM
Post #7


Member
***

Group: Members
Posts: 69
Joined: 21-June 14
Member No.: 21,123



I put the URL: photos/cham1.JPG
and the result of my website is as you can see :http://www.hostingpics.net/viewer.php?id=828864cham.jpg

I have succesfully used this URL before, but when I changed to my main site, I d'ont understand why it doesn't work now.
use the PHP way is more complicated
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Louffeman
post Sep 26 2014, 03:49 AM
Post #8


Member
***

Group: Members
Posts: 69
Joined: 21-June 14
Member No.: 21,123



OK!
finally, iused the PHP way, it is ok !
thanks a lot !
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Sep 26 2014, 03:55 AM
Post #9


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



I don't suppose you own the hostingpics.net domain. It rather looks like a hosting site for images in French, like Flickr or something.

What's the full url of photos/cham1.JPG, with domain and path?
And, if you don't use PHP, how do you pull the image from the DB otherwise?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 25th April 2024 - 03:55 AM