Can Someone help? I have a dynamic database that displays a PDF's file name, which has the same names as my PDF's stored in a folder. THis folder called "revoked" also has subfolders that store more PDF's like "2007" "2006", "2005", "2004 - 2003 with all PDF's for that year.
I would like to link my file name from my database to the correct PDF. I can get it to work fine for one folder like revoked which holds my 2008 PDF's but not anyother folder. Here is how my links are formed.
<?php do { ?>
<tr>
<td><strong><?php echo $row_rstest['Manufacturer'
]; ?></strong></td>
<td><strong><?php echo $row_rstest['Platform']; ?></strong></td>
<td><strong><?php echo $row_rstest['Theme']; ?></strong></td>
<td><strong><?php echo $row_rstest['SoftwareID'];
?></strong></td>
<td><strong><?php echo $row_rstest['Version']; ?></strong></td>
<td><strong><?php echo $row_rstest['OS']; ?></strong></td>
<td><strong><?php echo $row_rstest['DateRevoked']
; ?></strong></td>
<td><strong><?php echo $row_rstest['Days']; ?></strong></td>
<td><strong><?php echo $row_rstest['CompletionDat
e']; ?></strong></td>
<td><strong><a href="/MGCWEB/files/revoke
d/<?php echo $row_rstest['Letter']. ".pdf" ?>"><?php echo $row_rstest['Letter']; ?></a></strong></td>
</tr>
<?php } while ($row_rstest = mysql_fetch_assoc($rstest)
); ?>
</table>
<?php }
Start Free Trial