Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Link for Dynamic Field to Open PDF or Word?

New Here ,
May 05, 2008 May 05, 2008

Copy link to clipboard

Copied

Hello,

(MySQL/PHP)

I have a MySQL table called projects. In the projects table is a field called [uploadedfile]. This field contains the name of a document the users previously uploaded to a folder on the server. I have a Detail page has a table that displays the project data including the [uploadedfile] field. Is there a way to make a link to the [uploadedfile] field, so the user will click on the link, and the document will open? Here is the code:

<td valign="top"><?php echo $row_DetailRS1['uploadedfile']; ?></td>

Thanks for your help
TOPICS
Server side applications

Views

328
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 05, 2008 May 05, 2008

Copy link to clipboard

Copied

<td valign="top">
<a href="<?php echo $row_DetailRS1['uploadedfile']; ?>"><?php echo $row_DetailRS1['uploadedfile']; ?></a>
</td>

--
Ken Ford
Adobe Community Expert - Dreamweaver
Fordwebs, LLC
http://www.fordwebs.com


"WPW07" <webforumsuser@macromedia.com> wrote in message news:fvnh62$1mo$1@forums.macromedia.com...
> Hello,
>
> (MySQL/PHP)
>
> I have a MySQL table called projects. In the projects table is a field called
> [uploadedfile]. This field contains the name of a document the users
> previously uploaded to a folder on the server. I have a Detail page has a
> table that displays the project data including the [uploadedfile] field. Is
> there a way to make a link to the [uploadedfile] field, so the user will click
> on the link, and the document will open? Here is the code:
>
> <td valign="top"><?php echo $row_DetailRS1['uploadedfile']; ?></td>
>
> Thanks for your help
>

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 05, 2008 May 05, 2008

Copy link to clipboard

Copied

Thanks Ken. Out of curiosity, how does this work? Why the same code twice?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 05, 2008 May 05, 2008

Copy link to clipboard

Copied

LATEST
The first one is the link, and the second one is what is seen on the page.

--
Ken Ford
Adobe Community Expert - Dreamweaver
Fordwebs, LLC
http://www.fordwebs.com


"WPW07" <webforumsuser@macromedia.com> wrote in message news:fvnm31$6o7$1@forums.macromedia.com...
> Thanks Ken. Out of curiosity, how does this work? Why the same code twice?
>
>

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines