web site image display |
web site image display |
Louffeman |
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! |
Christian J |
Sep 24 2014, 01:49 PM
Post
#2
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
|
Louffeman |
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 |
Christian J |
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 |
pandy |
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.
|
Frederiek |
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". |
Louffeman |
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 |
Louffeman |
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 ! |
Frederiek |
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? |
Lo-Fi Version | Time is now: 25th April 2024 - 03:55 AM |