This is a discussion on "[SOLVED] image display php code problem" within the PHP Forum section. This forum, and the thread "[SOLVED] image display php code problem are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] image display php code problem
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
[SOLVED] image display php code problem
Ok i have a dreamweaver php file called "Display pic.php" and i have succesfully dragged records to display from a mysql database into text boxes on the php file, one of the text boxes is recording the name of the image from the database, i uploaded the image into the images2 folder located in my sites directory to save clogging up teh database. So the image is located in the images2 file & the name of the image goes into the databases with the rest of the records. I need to display the image in the table at the bottom of my php file.
So basically i have records from my mysql database displaying in text fields on my php file, and i would like a code example of how to get the image to display in the table under the text boxes, aswell as just the name of the image. Below is my database "dblearn", and the code is using the table called employees: CREATE DATABASE IF NOT EXISTS dblearn; USE dblearn; CREATE TABLE employees (name VARCHAR(30), email VARCHAR(30), phone VARCHAR(30), photo VARCHAR(30)) Here is my code:
Please help! Cheers. |
|
|
|
#2
|
|||
|
|||
|
Re: image display php code problem
Where abouts do you want the image displayed in your code?
|
|
#3
|
|||
|
|||
|
Re: image display php code problem
Or you could try
|
|
#4
|
|||
|
|||
|
Re: image display php code problem
Hi Adrock! I would like the image to be displayed in this part of my code, its a small square table:
|
|
#5
|
|||
|
|||
|
Re: image display php code problem
Did you try that code i posted (it's hidden but it's there)?
|
|
#6
|
||||
|
||||
|
Re: image display php code problem
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#7
|
|||
|
|||
|
Re: image display php code problem
Hi Alex!! That Code Of Your Looks Right The only problem is even do i have put the path to the images folder in, the image is still not showing up in the table! Any suggestions???
Cheers 4 replying to my post do fella! Here's the code you written for me:
|
|
#8
|
|||
|
|||
|
Sorry Alex i have sorted the code, its now working fine... Cheers
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| <li> problem :: How to make appear list-style-image while choosing display:inline | sayamish | Web Page Design | 2 | Oct 21st, 2007 05:19 |
| [SOLVED] display a image record from a database with a set size | longstand | PHP Forum | 8 | Oct 19th, 2007 19:18 |
| [SOLVED] display image if javascript not enabled | Voodoochilli | JavaScript Forum | 1 | Oct 4th, 2007 13:58 |
| Display Image Problem | Matc | JavaScript Forum | 1 | Jun 17th, 2007 23:32 |
| Image Upload/Display Refresh Problem | acruz | ASP.NET Forum | 1 | Jun 20th, 2006 14:08 |