This is a discussion on "Displaying an Image in php via path in MYSQL" within the PHP Forum section. This forum, and the thread "Displaying an Image in php via path in MYSQL are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Displaying an Image in php via path in MYSQL
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Displaying an Image in php via path in MYSQL
I am trying to display some data via php that i have stored in my mysql database,
I seem to have worked the code out for the text that i want displayed but when i enter the info for the photo that is stored in my mysql i just get the web link displayed instead of the actual image. My Mysql database structure is as follows:
http://uxellaleague.com/images/teams...6/red_tile.jpg but is displayed as follows Chimp Date Of Birth: 1971-04-08 Nickname: Gaffer Photo: http://uxellaleague.com/images/teams...6/red_tile.jpg E-mail: Web: someone has said that this may help but i have no idea how to get it to work, should i leave the words std url in, for example?
Thanks in advance Andy |
|
|
|
#2
|
|||
|
|||
|
Re: Displaying an Image in php via path in MYSQL
Instead of:
Photo: $Photo you need: Photo: <img src=\"$Photo\" /> You are printing out $Photo, which is equal to the path of the image. You just need the image tags so that the browser knows to display the image. Cheers, Jim. |
![]() |
| Tags |
| displaying, image, php, via, path, mysql |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP/MYSQL Displaying records | Ydot | PHP Forum | 6 | Jul 23rd, 2007 06:12 |
| Background image not displaying. | Xyis | Web Page Design | 2 | Jul 20th, 2007 14:40 |
| Displaying MySQL database tables on a page | vandiermen | PHP Forum | 3 | Jun 30th, 2007 21:58 |
| Linked image keeps displaying a border? | ricoantinoro | Web Page Design | 11 | Dec 8th, 2006 23:27 |
| Image gallery not displaying enlarged image | AdRock | PHP Forum | 15 | Sep 1st, 2006 11:31 |