note 100862 rejected from function.parse-url by danbrown
| From: | danbrown@php.net | Date: | Thu, 11 Nov 2010 18:33:16 +0000 |
| Subject: | note 100862 rejected from function.parse-url by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-173953@lists.php.net to get a copy of this message | ||
Note Submitter: mikee at highveldmail dot co dot za
----
Hi
I am new to this and dont know if im posting in the right area also new at PHP. I ask you forgive me
if i sound stupid.
I have a mysql db, in this db table I have a field called "pd_file"
I pull the data of that to a PHP page, my code looks like this
if ($pd_file > 0) {
?>
<p>
<?php
} else {
echo $pd_file;
}
?>
it displays the file name on the page but what i want it to do is make a URL to the file so it can
be run.
it needs to display "View File" but link to the file like:
echo <a href="../uploadedfiles/" & $pd_file &">View File</a>
when clicking on "View File" the file should open
Thank you so much
Mike