note 100862 added to function.parse-url
| From: | mikee at highveldmail dot co dot za | Date: | Thu, 11 Nov 2010 14:40:06 +0000 |
| Subject: | note 100862 added to function.parse-url | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-173943@lists.php.net to get a copy of this message | ||
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
----
Server IP: 69.147.83.197
Probable Submitter: 196.25.255.214
----
Manual Page -- http://www.php.net/manual/en/function.parse-url.php
Edit -- https://master.php.net/note/edit/100862
Del: integrated -- https://master.php.net/note/delete/100862/integrated
Del: useless -- https://master.php.net/note/delete/100862/useless
Del: bad code -- https://master.php.net/note/delete/100862/bad+code
Del: spam -- https://master.php.net/note/delete/100862/spam
Del: non-english -- https://master.php.net/note/delete/100862/non-english
Del: in docs -- https://master.php.net/note/delete/100862/in+docs
Del: other reasons-- https://master.php.net/note/delete/100862
Reject -- https://master.php.net/note/reject/100862
Search -- https://master.php.net/manage/user-notes.php