Jump to content

How to create a http link to a database field?


Recommended Posts

I have a database table that looks like this:

ID | Link

A | http://www.linkA.com
B | http://www.linkB.com
C | http://www.linkC.com


The links are always changing so I only want to hardcode a reference to them.

So on my webpage I would like a link that looks like:

http://www.mysite.com/A

Which would direct users to http://www.linkA.com


How would I go about creating this?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...