Hi,
I have a MySQL database table with Affiliate Links.
For example, the columns of this table are :
Id, Name of merchant, link.
Basically, the id is a number, the name of the merchant is a word(eg. Amazon) and the link is the actual link(eg. eg. http://www.amazon.com/books/12425125, etc.)
What I need help on is creating a PHP script that lets users click on these links WITHOUT showing the actually link(since it's VERY long). I want it only to show the link.php3?id=1 link, which will go to the site upon clicked.
Bascically, I want a link such as :
http://www.mysite.com/link.php3?id=1
if id=1 was amazon's link, then I want the user to go directly to the amazon link upon clicking the http://www.mysite.com/link.php3?id=1
link.
My problem now is that whenever I want put a link on my page, I have to put the actually link from my database to my page(eg. http://www.amazon.com/books/12421412, etc.). I can't seem to get http://mysite.com/link.php3?id=1 to link directly to http://www.amazon.com/books/12421412, etc.
Any help would be appreciated.
Thanks