Alright Guys
I have created a new db field called download_link and have linked it to the add products page. That is working fine. The information that is stored in that field is the filename and extention ie. text.zip
I have then attempted to get the information display on this page.. http://www.digitalre....ategory=demo_1 look under the demo 3 product
What I am trying to do is to get it to display in a url format. So all I need to do is add the file name on the add products page, then on the marketplace it will add it to a url link, and then display it..
The url link is suppose to look like this
<a href="http://www.digitalresellersvault.com/go/downloads/ "file name goes here"
I have tried all sort of cobinmations but all I can get to display is the filename, not a url link..
This is the code that I am using now
$download_link='<a href="http://www.digitalresellersvault.com/go/downloads/'$r[download_link]."></a>';
How Do I Add This Bit Of Code?????
Started by byronwells, Feb 14 2010 09:01 PM
6 replies to this topic
#1
Posted 14 February 2010 - 09:01 PM
|
|
|
#2
Posted 14 February 2010 - 11:23 PM
your link is broken but if you bit of code you posted is straight from your file doing it like this
should fix your problem
$download_link='<a href="http://www.digitalresellersvault.com/go/downloads/' . $r[download_link]. '"></a>';
should fix your problem
#3
Posted 14 February 2010 - 11:44 PM
Feral said:
your link is broken but if you bit of code you posted is straight from your file doing it like this
should fix your problem
$download_link='<a href="http://www.digitalresellersvault.com/go/downloads/' . $r[download_link]. '"></a>';
should fix your problem
That didnt work.. Its not showing in a url link...
#4
Posted 14 February 2010 - 11:51 PM
more code and a working link are needed then.
#5
Posted 14 February 2010 - 11:55 PM
Feral said:
more code and a working link are needed then.
At the moment no url link is being dispalyed
Just the contents of the db field...
The contents of the db field needs to go into the url link
#6
Posted 15 February 2010 - 12:37 AM
Uhm Im not sure if this is the problem but you didn't specify any name/title/text to display for the link:
Should work ^^ However Im not sure what the display text of the link should be in your case.
$download_link='<a href="http://www.digitalresellersvault.com/go/downloads/' . $r[download_link]. '">Some link name here</a>';
Should work ^^ However Im not sure what the display text of the link should be in your case.
Edited by webcodez, 16 February 2010 - 08:26 AM.
#7
Posted 19 February 2010 - 02:12 AM
Andrew, why would we add perl code to a PHP script?
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall
I study Information Systems at Karlstad University when I'm not on CodeCall


Sign In
Create Account


Back to top









