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.digitalresellersvault.com...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>';
your link is broken but if you bit of code you posted is straight from your file doing it like this
should fix your problemCode:$download_link='<a href="http://www.digitalresellersvault.com/go/downloads/' . $r[download_link]. '"></a>';
more code and a working link are needed then.
Uhm Im not sure if this is the problem but you didn't specify any name/title/text to display for the link:
Should workCode:$download_link='<a href="http://www.digitalresellersvault.com/go/downloads/' . $r[download_link]. '">Some link name here</a>';
However Im not sure what the display text of the link should be in your case.
Last edited by webcodez; 02-16-2010 at 08:26 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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks