Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Link to a file in a database, just link, no display

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am trying to store a bunch of files in a database for retrieval by the user. I have a search page that will display the intended results. What I'd like to do is have the word "Download" as the active link to the appropriate file for each returned record. For example:

File name: Use: Link:
pk204g.exe File Compression Download

where "Download" is a link to a file in my database.

Can UltraDev help me do this?

-PPIDC
 
It can. Just dig a little in the source, and it's really easy:

Drag'n'drop the filename from the DB into the web page (where you want the "download" link), then mark it and switch to source view. Marked there is the section that displays the data. Remember this section well, there will be markers (the actual script tags) that will help you there.
Now just write the following before...

Code:
<a href=&quot;

...and the following after this section:

Code:
&quot;>Download</a>

Thus you have added a link and included the entry from the db in the reference section - so your page will direct you there.
It could be necessary to add some relative path (if your downloadable files are in a subdirectory or something) before the database entry.

Good luck - I hope I did help a little...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top