我正在尝试通过记录集链接到位于我的文件系统中的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>
答案 0 :(得分:1)
你不是在那里错过了一些代码吗?
<td>**<?php** echo '<a href="/_NewSite/Schedules' . $row_recordsetName['file'] . '">' . $row_recordsetName['file'] .'</a>';</td>