PDA

View Full Version : Image path from db


KFrancesco
01-12-2015, 06:33 AM
Hi,
I need to see all images attached to my forum, the images are stored as a file and not in the database.

Can I reconstruct the path of the images data by accessing data in the attachement table in to the db?

Thx

kh99
01-12-2015, 01:22 PM
If you look at includes/functions_file.php, function fetch_attachment_path(), you can see how the file path is consructed from the attachmentid. Or you could call that function if you're trying to do this in vb code.