动态链接到PDF

时间:2016-01-09 14:12:10

标签: php mysql dynamic hyperlink

我正在尝试通过记录集链接到位于我的文件系统中的pdf。文件名位于名为' file'。

的列中

不能弄清楚我做错了什么:

 <form method="POST" enctype="multipart/form-data" name="compTime" class="equipmenttroublereportSubmit" id="compTime">
<table cellpadding="4">
<tr>
  <td>id</td>
  <td>uploaddate</td>
  <td>schedulemonth</td>
  <td>version</td>
  <td>comments</td>
  <td>file</td>
</tr>
<?php do { ?>
<tr>
  <td><?php echo $row_Recordset1['id']; ?></td>
  <td><?php echo $row_Recordset1['uploaddate']; ?></td>
  <td><?php echo $row_Recordset1['schedulemonth']; ?></td>
  <td><?php echo $row_Recordset1['version']; ?></td>
  <td><?php echo $row_Recordset1['comments']; ?></td>
  <td>echo '<a href="/_NewSite/Schedules' . $row_recordsetName['file'] . '">' . $row_recordsetName['file'] .'</a>';</td>
</tr>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</table>
 <p class="compTimeForm">&nbsp;</p>
<div align="center"></div>
</form>

1 个答案:

答案 0 :(得分:1)

你不是在那里错过了一些代码吗?

<td>**<?php** echo '<a href="/_NewSite/Schedules' . $row_recordsetName['file'] . '">' . $row_recordsetName['file'] .'</a>';</td>
相关问题