Jump to content

Links to web pages using static name.


rscott7706

Recommended Posts

Pardon me if this has been answered, I searched on several key words and did not find an answer.

 

I am setting up a database that a non-profit can post their own news articles. 

 

Here is the structure:

 

Type          Collation 

id           int(3)

event         varchar(255)

link           varchar(255)

date_added timestamp

delete_date date

 

I want to have the "link" field contain the page link (ie http:/www.somewhere.com) the user will be directed to.  But, I would like a generic title to appear (instead of the address itself) - like "Go to this Link".

 

In other words, the PHP coding would make the words "Go to this Link" appear on the web page, but link to the link contained in the database link field.

 

I hope I explained that well, and someone can help.  Thanks in advance!!

 

Ron

 

Link to comment
Share on other sites

Yes , you would get what ever link is in the database. It seems as if you want to just make a regular link to a site. So yes the $link_variable refers to the link in the database.

In the statement you posted you closed the a tag with [/url] which that is BBCODE for forums and is not HTML syntax.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.