我正在尝试通过记录集链接到位于我的文件系统中的 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"> </p>
<div align="center"></div>
</form>
最佳答案
你是不是遗漏了一些代码?
<td>**<?php** echo '<a href="/_NewSite/Schedules' . $row_recordsetName['file'] . '">' . $row_recordsetName['file'] .'</a>';</td>
关于php - 动态链接到 PDF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34694495/