This is a discussion on "What is the best way to link an image with a record in mysql" within the PHP Forum section. This forum, and the thread "What is the best way to link an image with a record in mysql are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
What is the best way to link an image with a record in mysql
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
What is the best way to link an image with a record in mysql
Can someone please tell me how I can link an image to a specific record in my news table.
The news table currently has an id field (auto-increment), a title field, a timestamp field and a content field. I use a form to insert the news item into the database and would like a specific image linked to each item of news. I did try adding a column named image and a field on the form so I can put the name of the image to be stored in the database and I used this code to try and display the image but it doesn't work
|
|
|
|
|||
|
Re: What is the best way to link an image with a record in mysql
Your approach is perfectly sound. Suggest something else wrong in the logic/coding somewhere. Check that the image is being stored where you think it is and that the name of the image in the database is what and where you think it is. |
![]() |
| Tags |
| best, link, image, record, mysql |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Record the link you clicked to leave my page | TheSealPortalTeam | PHP Forum | 22 | May 5th, 2008 20:05 |
| Variable record size in MySql? | wmw | Databases | 2 | Oct 6th, 2006 17:09 |
| updating mysql record | djme | Databases | 4 | Jan 4th, 2006 23:09 |
| Insert record in mysql | djme | Databases | 1 | Dec 24th, 2005 01:42 |
| mysql update record | djme | Databases | 4 | Nov 28th, 2005 11:12 |