I have a file uploader that will send pdf files to the php DB. the pdf's will be auto naming so i cant just make a standard link
the db field name is "inventory" then the pdf is stored in a folder on the server called hostadmin/docs.
i have made the following link
<a href="../hostadmin/docs/<?php echo $row_Recordset1['inventory']; ?>"><img src="../images/smalldownload.png" width="35" height="35" alt="download" /></a>
when i select the link it just sends me to http://www.student.com/beta/hostadmin/docs/
but i will need to show the pdf that has been uploaded e.g inventory1340013581.pdf
can anyone help?
thanks in advance
create a link to an external undefined file on a php DB
Moderator: General Moderators
-
jonnyfortis
- Forum Contributor
- Posts: 462
- Joined: Tue Jan 10, 2012 6:05 am
Re: create a link to an external undefined file on a php DB
Code: Select all
<?php echo $row_Recordset1['inventory']; ?>-
jonnyfortis
- Forum Contributor
- Posts: 462
- Joined: Tue Jan 10, 2012 6:05 am
Re: create a link to an external undefined file on a php DB
how do i test that?Celauran wrote:Does that code by itself produce the expected output?Code: Select all
<?php echo $row_Recordset1['inventory']; ?>
-
jonnyfortis
- Forum Contributor
- Posts: 462
- Joined: Tue Jan 10, 2012 6:05 am
Re: create a link to an external undefined file on a php DB
ok its working now,Celauran wrote:Does that code by itself produce the expected output?Code: Select all
<?php echo $row_Recordset1['inventory']; ?>
<?php echo $row_Recordset1['Inventory']; ?>
seems to be linking to the pdfs correctly
thanks