Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

links in a database

Status
Not open for further replies.

martinb7

Programmer
Jan 5, 2003
235
GB
Is there anyway of displaying data from a database on a page that when you see it on a page it is a hyperlink??

Database column
+------+
|cheats|
+------+
Page
<a href=&quot;cheats.php&quot;>cheats</a>
 
Yes.

[ol][li]Pull the information out of the database.[/li][li]Wrap the information in the appropriate HTML tag-strings.[/li][li]Output the wrapped information.[/li][/ol]

The one gotcha is that a link is composed of two parts: the URL to which the link should send the browser, and the text which the user can see. Either your database needs both parts, or your code needs to be able to deduce the other part from one. Want the best answers? Ask the best questions: TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top