我試圖通過記錄集來鏈接到位於我的文件系統中的pdf。文件名稱位於名爲「文件」的列內。動態鏈接到PDF
找不出我做錯了什麼:
<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>
你不應該使用'做while'在這種情況下,必須用'while',因爲在同時應用的價值將在第一循環中使用 – Phiter
你能張貼由生成的鏈接這個代碼? – talki