PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Thu Nov 27, 2014 1:34 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon Jun 18, 2012 5:38 am 
Offline
Forum Contributor

Joined: Tue Jan 10, 2012 7:05 am
Posts: 359
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


Top
 Profile  
 
PostPosted: Mon Jun 18, 2012 6:59 am 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 3787
Location: Montreal, Canada
Syntax: [ Download ] [ Hide ]
<?php echo $row_Recordset1['inventory']; ?>

Does that code by itself produce the expected output?

_________________
Stay on top of upgrades.
Supported PHP versions
No longer supported versions


Top
 Profile  
 
PostPosted: Mon Jun 18, 2012 8:16 am 
Offline
Forum Contributor

Joined: Tue Jan 10, 2012 7:05 am
Posts: 359
Celauran wrote:
Syntax: [ Download ] [ Hide ]
<?php echo $row_Recordset1['inventory']; ?>

Does that code by itself produce the expected output?


how do i test that?


Top
 Profile  
 
PostPosted: Mon Jun 18, 2012 8:42 am 
Offline
Forum Contributor

Joined: Tue Jan 10, 2012 7:05 am
Posts: 359
Celauran wrote:
Syntax: [ Download ] [ Hide ]
<?php echo $row_Recordset1['inventory']; ?>

Does that code by itself produce the expected output?


ok its working now,

<?php echo $row_Recordset1['Inventory']; ?>

seems to be linking to the pdfs correctly

thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group