Forums

PHP

This topic is locked

Serve files as links from database

Posted 19 May 2011 21:50:48
1
has voted
19 May 2011 21:50:48 Rob Hickey posted:
I'm sure this is very basic for most, but this is my first go at most thing relating to php and mySQL.. I'm only asking to be pointed in the right direction.

I have created a table in a MySQL db for documents I wish to serve up (PDFs, MS word, Excell, etc...). It contains fields for the DocName and DocLocation (dir. path on the web server), as well as a few others... I can display the data record set query and placement into a DW php page. What I can't seem to figure is how to create a link that uses the directory path of a given doc name, so I can serve up the various documents via the database to be available for download. I've look at DW help files and have Googled for answers, but i fear I'm not searching using the correct terminology or key words.

I plan on purchasing the Pure PHP Upload 2 DW extension to upload files to the directories, but only if I'm able to display the results and have the files download successfully.

Any guidance is greatly appreciated.
Edited by - Rob Hickey on 19 May 2011  21:52:02

Reply to this topic