Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.
I have created a MySQL database to store news articles with the following fields.
Title, Date, main article, smlImg, lgeImg
I created a script which lists all articles and then turns the title into the click through for the main detail. I want to display the image referenced in the db.
Now this is where my Q lies. Do I store the full path to the image in the DB or should I store only the name and create an image path variable in my detail page file?
If all of the images will be stored in one folder, or a folder you can construct from other variables, then I would create a path variable and only store the filename.