close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Download file as PDF from DA setup

Thread began 3/05/2010 12:09 am by downloads336743 | Last modified 3/08/2010 12:54 am by downloads336743 | 1384 views | 6 replies

downloads336743

Hi Brian,
I tried it, but it just opens the server folder on the web page and shows what's in the folder...I'm assuming it's the 'detail' page (in DataAssist) that i include the code you mentioned. So anyway, this is the code as it now stands with yours included (i changed your $row_pdf to $row_WADAmusicuploads - which is what all the others had though i did try it with $row_pdf as well)('Upload' is the database table field) :

<div class="WADADetailsContainer"> <a name="top"></a>
<div class="WADAHorizLine"><img src="../WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
<?php if ($totalRows_WADAmusicuploads > 0) { // Show if recordset not empty ?>
<div id="WADADetails">
<div class="WADAHeader">Details</div>
<table class="WADADataTable" cellpadding="0" cellspacing="0" border="0">
<tr>
<th class="WADADataTableHeader">Music Name:</th>
<td class="WADADataTableCell"><?php echo($row_WADAmusicuploads['ItemName']); ?></td>
</tr>
<tr>
<th class="WADADataTableHeader">Music Description:</th>
<td class="WADADataTableCell"><?php echo($row_WADAmusicuploads['ItemDescription']); ?></td>
</tr>
<tr>
<th class="WADADataTableHeader">Music Type:</th>
<td class="WADADataTableCell"><?php echo($row_WADAmusicuploads['ItemType']); ?></td>
</tr>
<tr>
<th class="WADADataTableHeader">Upload Music:</th>
<td class="WADADataTableCell"><a href="uploaded_files/<?php echo $row_WADAmusicuploads['Upload']; ?>" target="_blank">Download PDF</a></td>
</tr>
</table>
<div class="WADAHorizLine"><img src="../WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
<div class="WADAButtonRow">
<table class="WADADataNavButtons" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="WADADataNavButtonCell" nowrap="nowrap"><a href="admin/musicuploads_Update.php?ItemID=<?php echo(rawurlencode($row_WADAmusicuploads['ItemID'])); ?>" title="Update"><img border="0" name="Update" id="Update" alt="Update" src="../WA_DataAssist/images/Slate/Traditional_update.gif" /></a></td>
<td class="WADADataNavButtonCell" nowrap="nowrap"><a href="admin/musicuploads_Delete.php?ItemID=<?php echo(rawurlencode($row_WADAmusicuploads['ItemID'])); ?>" title="Delete"><img border="0" name="Delete" id="Delete" alt="Delete" src="../WA_DataAssist/images/Slate/Traditional_delete.gif" /></a></td>
<td class="WADADataNavButtonCell" nowrap="nowrap"><a href="musicuploads_Results.php" title="Results"><img border="0" name="Results" id="Results" alt="Results" src="../WA_DataAssist/images/Slate/Traditional_results.gif" /></a></td>
</tr>
</table>
</div>
</div>
<?php } // Show if recordset not empty ?>
<?php if ($totalRows_WADAmusicuploads == 0) { // Show if recordset empty ?>
<div class="WADANoResults">
<div class="WADANoResultsMessage">No record found.</div>
</div>
<div class="WADAHorizLine"><img src="../WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
<div class="WADADetailsLinkArea">
<div class="WADADataNavButtonCell"><a href="musicuploads_Results.php" title="Results"><img border="0" name="Results1" id="Results1" alt="Results" src="../WA_DataAssist/images/Slate/Traditional_results.gif" /></a></div>
</div>
<div class="WADAHorizLine"><img src="../WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
<?php } // Show if recordset empty ?>
</div>

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...