gpt4 book ai didi

php - 动态链接到 PDF

转载 作者:行者123 更新时间:2023-11-28 23:39:55 24 4
gpt4 key购买 nike

我正在尝试通过记录集链接到位于我的文件系统中的 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>

最佳答案

你是不是遗漏了一些代码?

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

关于php - 动态链接到 PDF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34694495/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com